本文整理汇总了C#中INetworkManager类的典型用法代码示例。如果您正苦于以下问题:C# INetworkManager类的具体用法?C# INetworkManager怎么用?C# INetworkManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
INetworkManager类属于命名空间,在下文中一共展示了INetworkManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: TargetingDummy
public TargetingDummy(IPlayerManager playerManager, INetworkManager networkManager,
IResourceManager resourceManager)
{
_networkManager = networkManager;
_playerManager = playerManager;
_resourceManager = resourceManager;
var head = new TargetingDummyElement("dummy_head", BodyPart.Head, _resourceManager);
var torso = new TargetingDummyElement("dummy_torso", BodyPart.Torso, _resourceManager);
var groin = new TargetingDummyElement("dummy_groin", BodyPart.Groin, _resourceManager);
var armL = new TargetingDummyElement("dummy_arm_l", BodyPart.Left_Arm, _resourceManager);
var armR = new TargetingDummyElement("dummy_arm_r", BodyPart.Right_Arm, _resourceManager);
var legL = new TargetingDummyElement("dummy_leg_l", BodyPart.Left_Leg, _resourceManager);
var legR = new TargetingDummyElement("dummy_leg_r", BodyPart.Right_Leg, _resourceManager);
_elements.Add(head);
_elements.Add(torso);
_elements.Add(groin);
_elements.Add(armL);
_elements.Add(armR);
_elements.Add(legL);
_elements.Add(legR);
head.Clicked += Selected;
torso.Clicked += Selected;
groin.Clicked += Selected;
armL.Clicked += Selected;
armR.Clicked += Selected;
legL.Clicked += Selected;
legR.Clicked += Selected;
Update(0);
UpdateHealthIcon();
}
开发者ID:MSylvia,项目名称:space-station-14,代码行数:32,代码来源:TargetingDummy.cs
示例2: UdpServerEntryPoint
/// <summary>
/// Initializes a new instance of the <see cref="UdpServerEntryPoint" /> class.
/// </summary>
/// <param name="logger">The logger.</param>
/// <param name="networkManager">The network manager.</param>
/// <param name="appHost">The application host.</param>
/// <param name="json">The json.</param>
public UdpServerEntryPoint(ILogger logger, INetworkManager networkManager, IServerApplicationHost appHost, IJsonSerializer json)
{
_logger = logger;
_networkManager = networkManager;
_appHost = appHost;
_json = json;
}
开发者ID:jabbera,项目名称:MediaBrowser,代码行数:14,代码来源:UdpServerEntryPoint.cs
示例3: StatisticsTask
/// <summary>
/// Initializes a new instance of the <see cref="ReloadLoggerFileTask" /> class.
/// </summary>
/// <param name="logManager">The logManager.</param>
/// <param name="appHost"></param>
/// <param name="httpClient"></param>
public StatisticsTask(ILogManager logManager, IApplicationHost appHost, INetworkManager networkManager, IHttpClient httpClient)
{
LogManager = logManager;
ApplicationHost = appHost;
NetworkManager = networkManager;
HttpClient = httpClient;
}
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:13,代码来源:StatisticsTask.cs
示例4: DlnaEntryPoint
public DlnaEntryPoint(IServerConfigurationManager config,
ILogManager logManager,
IServerApplicationHost appHost,
INetworkManager network,
ISessionManager sessionManager,
IHttpClient httpClient,
ILibraryManager libraryManager,
IUserManager userManager,
IDlnaManager dlnaManager,
IImageProcessor imageProcessor,
IUserDataManager userDataManager,
ILocalizationManager localization,
IMediaSourceManager mediaSourceManager,
ISsdpHandler ssdpHandler)
{
_config = config;
_appHost = appHost;
_network = network;
_sessionManager = sessionManager;
_httpClient = httpClient;
_libraryManager = libraryManager;
_userManager = userManager;
_dlnaManager = dlnaManager;
_imageProcessor = imageProcessor;
_userDataManager = userDataManager;
_localization = localization;
_mediaSourceManager = mediaSourceManager;
_ssdpHandler = (SsdpHandler)ssdpHandler;
_logger = logManager.GetLogger("Dlna");
}
开发者ID:jrags56,项目名称:MediaBrowser,代码行数:30,代码来源:DlnaEntryPoint.cs
示例5: UsageEntryPoint
public UsageEntryPoint(ILogger logger, IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient)
{
_logger = logger;
_applicationHost = applicationHost;
_networkManager = networkManager;
_httpClient = httpClient;
}
开发者ID:Rycius,项目名称:MediaBrowser,代码行数:7,代码来源:UsageEntryPoint.cs
示例6: UdpServerEntryPoint
/// <summary>
/// Initializes a new instance of the <see cref="UdpServerEntryPoint"/> class.
/// </summary>
/// <param name="logger">The logger.</param>
/// <param name="networkManager">The network manager.</param>
/// <param name="serverConfigurationManager">The server configuration manager.</param>
/// <param name="httpServer">The HTTP server.</param>
public UdpServerEntryPoint(ILogger logger, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager, IHttpServer httpServer)
{
_logger = logger;
_networkManager = networkManager;
_serverConfigurationManager = serverConfigurationManager;
_httpServer = httpServer;
}
开发者ID:RomanDengin,项目名称:MediaBrowser,代码行数:14,代码来源:UdpServerEntryPoint.cs
示例7: UsageReporter
public UsageReporter(IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient, IUserManager userManager)
{
_applicationHost = applicationHost;
_networkManager = networkManager;
_httpClient = httpClient;
_userManager = userManager;
}
开发者ID:jabbera,项目名称:MediaBrowser,代码行数:7,代码来源:UsageReporter.cs
示例8: Init
public static void Init(IApplicationPaths appPaths, INetworkManager networkManager)
{
// Ugly alert (static init)
_appPaths = appPaths;
_networkManager = networkManager;
}
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:7,代码来源:MBRegistration.cs
示例9: NetworkGrapher
public NetworkGrapher(IResourceManager resourceManager, INetworkManager networkManager)
{
_resourceManager = resourceManager;
_networkManager = networkManager;
_dataPoints = new List<NetworkStatisticsDataPoint>();
_lastDataPointTime = DateTime.Now;
_textSprite = new TextSprite("NetGraphText", "", _resourceManager.GetFont("base_font"));
}
开发者ID:millpond,项目名称:space-station-14,代码行数:8,代码来源:NetworkGrapher.cs
示例10: PlayToControllerFactory
public PlayToControllerFactory(ISessionManager sessionManager, IItemRepository itemRepository, ILibraryManager libraryManager, ILogManager logManager, INetworkManager networkManager)
{
_itemRepository = itemRepository;
_sessionManager = sessionManager;
_libraryManager = libraryManager;
_networkManager = networkManager;
_logger = logManager.GetLogger("PlayTo");
}
开发者ID:Tensre,项目名称:MediaBrowser,代码行数:8,代码来源:DlnaControllerFactory.cs
示例11: Init
public static void Init(IApplicationPaths appPaths, INetworkManager networkManager, ILogManager logManager)
{
// Ugly alert (static init)
_appPaths = appPaths;
_networkManager = networkManager;
_logger = logManager.GetLogger("SecurityManager");
}
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:8,代码来源:MBRegistration.cs
示例12: ConnectEntryPoint
public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager)
{
_httpClient = httpClient;
_appPaths = appPaths;
_logger = logger;
_networkManager = networkManager;
_connectManager = connectManager;
}
开发者ID:Ceten,项目名称:MediaBrowser,代码行数:8,代码来源:ConnectEntryPoint.cs
示例13: PlayToController
public PlayToController(SessionInfo session, ISessionManager sessionManager, IItemRepository itemRepository, ILibraryManager libraryManager, ILogger logger, INetworkManager networkManager)
{
_session = session;
_itemRepository = itemRepository;
_sessionManager = sessionManager;
_libraryManager = libraryManager;
_networkManager = networkManager;
_logger = logger;
}
开发者ID:Tensre,项目名称:MediaBrowser,代码行数:9,代码来源:DlnaController.cs
示例14: DlnaServerEntryPoint
public DlnaServerEntryPoint(IServerConfigurationManager config, ILogManager logManager, IApplicationHost appHost, INetworkManager network)
{
Instance = this;
_config = config;
_appHost = appHost;
_network = network;
_logger = logManager.GetLogger("DlnaServer");
}
开发者ID:Nickolin,项目名称:MediaBrowser,代码行数:9,代码来源:DlnaServerEntryPoint.cs
示例15: NetworkManager
public NetworkManager()
{
if (!ManagerPresent) {
throw new ApplicationException(String.Format("Name {0} has no owner", BusName));
}
manager = Bus.System.GetObject<INetworkManager>(BusName, new ObjectPath(ObjectPath));
manager.StateChange += OnStateChange;
}
开发者ID:petejohanson,项目名称:banshee,代码行数:9,代码来源:NetworkManager.cs
示例16: PackageManager
/// <summary>
/// Initializes a new instance of the <see cref="PackageManager" /> class.
/// </summary>
/// <param name="securityManager">The security manager.</param>
/// <param name="networkManager">The network manager.</param>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="applicationPaths">The application paths.</param>
/// <param name="jsonSerializer">The json serializer.</param>
/// <param name="logger">The logger.</param>
public PackageManager(ISecurityManager securityManager, INetworkManager networkManager, IHttpClient httpClient, IApplicationPaths applicationPaths, IJsonSerializer jsonSerializer, ILogger logger)
{
_securityManager = securityManager;
_networkManager = networkManager;
_httpClient = httpClient;
_appPaths = applicationPaths;
_jsonSerializer = jsonSerializer;
_logger = logger;
}
开发者ID:snap608,项目名称:MediaBrowser,代码行数:18,代码来源:PackageManager.cs
示例17: DeviceDiscovery
public DeviceDiscovery(ILogger logger, IServerConfigurationManager config, IServerApplicationHost appHost, INetworkManager networkManager)
{
_tokenSource = new CancellationTokenSource();
_logger = logger;
_config = config;
_appHost = appHost;
_networkManager = networkManager;
}
开发者ID:paul-777,项目名称:Emby,代码行数:9,代码来源:DeviceDiscovery.cs
示例18: UdpServerEntryPoint
/// <summary>
/// Initializes a new instance of the <see cref="UdpServerEntryPoint"/> class.
/// </summary>
/// <param name="logger">The logger.</param>
/// <param name="networkManager">The network manager.</param>
/// <param name="serverConfigurationManager">The server configuration manager.</param>
/// <param name="httpServer">The HTTP server.</param>
public UdpServerEntryPoint(ILogger logger, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager, IHttpServer httpServer, IServerApplicationHost appHost, IJsonSerializer json)
{
_logger = logger;
_networkManager = networkManager;
_serverConfigurationManager = serverConfigurationManager;
_httpServer = httpServer;
_appHost = appHost;
_json = json;
}
开发者ID:rsolmn,项目名称:MediaBrowser,代码行数:16,代码来源:UdpServerEntryPoint.cs
示例19: BattleshipGame
/// # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
/// C L A S S F U N C T I O N S C L A S S F U N C T I O N S C L A S S F U N C T I O N S C L
/// # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
public BattleshipGame(INetworkManager networkManager)
{
_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
Window.AllowUserResizing = true;
_graphics.PreferredBackBufferWidth = 900;
_graphics.PreferredBackBufferHeight = 500;
this._networkManager = networkManager;
//_graphics.IsFullScreen = true;
}
开发者ID:kflo,项目名称:Battleship2,代码行数:13,代码来源:BattleshipGame.cs
示例20: UsageEntryPoint
public UsageEntryPoint(ILogger logger, IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient, ISessionManager sessionManager)
{
_logger = logger;
_applicationHost = applicationHost;
_networkManager = networkManager;
_httpClient = httpClient;
_sessionManager = sessionManager;
_sessionManager.SessionStarted += _sessionManager_SessionStarted;
}
开发者ID:bigjohn322,项目名称:MediaBrowser,代码行数:10,代码来源:UsageEntryPoint.cs
注:本文中的INetworkManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论