当前位置: 首页>>代码示例>>C#>>正文


C# INetworkManager类代码示例

本文整理汇总了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();
        }
开发者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


注:本文中的INetworkManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。