本文整理汇总了C#中INetworkManager类的典型用法代码示例。如果您正苦于以下问题:C# INetworkManager类的具体用法?C# INetworkManager怎么用?C# INetworkManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
INetworkManager类属于命名空间,在下文中一共展示了INetworkManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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;
}
示例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;
}
示例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");
}
示例5: UsageEntryPoint
public UsageEntryPoint(ILogger logger, IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient)
{
_logger = logger;
_applicationHost = applicationHost;
_networkManager = networkManager;
_httpClient = httpClient;
}
示例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;
}
示例7: UsageReporter
public UsageReporter(IApplicationHost applicationHost, INetworkManager networkManager, IHttpClient httpClient, IUserManager userManager)
{
_applicationHost = applicationHost;
_networkManager = networkManager;
_httpClient = httpClient;
_userManager = userManager;
}
示例8: Init
public static void Init(IApplicationPaths appPaths, INetworkManager networkManager)
{
// Ugly alert (static init)
_appPaths = appPaths;
_networkManager = networkManager;
}
示例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"));
}
示例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");
}
示例11: Init
public static void Init(IApplicationPaths appPaths, INetworkManager networkManager, ILogManager logManager)
{
// Ugly alert (static init)
_appPaths = appPaths;
_networkManager = networkManager;
_logger = logManager.GetLogger("SecurityManager");
}
示例12: ConnectEntryPoint
public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager)
{
_httpClient = httpClient;
_appPaths = appPaths;
_logger = logger;
_networkManager = networkManager;
_connectManager = connectManager;
}
示例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;
}
示例14: DlnaServerEntryPoint
public DlnaServerEntryPoint(IServerConfigurationManager config, ILogManager logManager, IApplicationHost appHost, INetworkManager network)
{
Instance = this;
_config = config;
_appHost = appHost;
_network = network;
_logger = logManager.GetLogger("DlnaServer");
}
示例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;
}