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


C# IServerApplicationHost类代码示例

本文整理汇总了C#中IServerApplicationHost的典型用法代码示例。如果您正苦于以下问题:C# IServerApplicationHost类的具体用法?C# IServerApplicationHost怎么用?C# IServerApplicationHost使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IServerApplicationHost类属于命名空间,在下文中一共展示了IServerApplicationHost类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AutomaticRestartEntryPoint

 public AutomaticRestartEntryPoint(IServerApplicationHost appHost, ILogger logger, ITaskManager iTaskManager, ISessionManager sessionManager)
 {
     _appHost = appHost;
     _logger = logger;
     _iTaskManager = iTaskManager;
     _sessionManager = sessionManager;
 }
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:7,代码来源:AutomaticRestartEntryPoint.cs

示例2: RokuSessionController

 public RokuSessionController(IHttpClient httpClient, IJsonSerializer json, IServerApplicationHost appHost, SessionInfo session)
 {
     _httpClient = httpClient;
     _json = json;
     _appHost = appHost;
     Session = session;
 }
开发者ID:Nickolin,项目名称:MediaBrowser,代码行数:7,代码来源:RokuSessionController.cs

示例3: 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

示例4: SatIpHost

 public SatIpHost(IServerConfigurationManager config, ILogger logger, IJsonSerializer jsonSerializer, IMediaEncoder mediaEncoder, IFileSystem fileSystem, IHttpClient httpClient, IServerApplicationHost appHost)
     : base(config, logger, jsonSerializer, mediaEncoder)
 {
     _fileSystem = fileSystem;
     _httpClient = httpClient;
     _appHost = appHost;
 }
开发者ID:t-andre,项目名称:Emby,代码行数:7,代码来源:SatIpHost.cs

示例5: SessionWebSocketListener

 /// <summary>
 /// Initializes a new instance of the <see cref="SessionWebSocketListener" /> class.
 /// </summary>
 /// <param name="sessionManager">The session manager.</param>
 /// <param name="logManager">The log manager.</param>
 /// <param name="dtoService">The dto service.</param>
 public SessionWebSocketListener(ISessionManager sessionManager, ILogManager logManager, IDtoService dtoService, IServerApplicationHost appHost)
 {
     _sessionManager = sessionManager;
     _logger = logManager.GetLogger(GetType().Name);
     _dtoService = dtoService;
     _appHost = appHost;
 }
开发者ID:Rycius,项目名称:MediaBrowser,代码行数:13,代码来源:SessionWebSocketListener.cs

示例6: SyncFromTraktTask

 /// <summary>
 /// 
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="jsonSerializer"></param>
 /// <param name="userManager"></param>
 /// <param name="userDataManager"> </param>
 /// <param name="httpClient"></param>
 /// <param name="appHost"></param>
 /// <param name="fileSystem"></param>
 public SyncFromTraktTask(ILogManager logger, IJsonSerializer jsonSerializer, IUserManager userManager, IUserDataManager userDataManager, IHttpClient httpClient, IServerApplicationHost appHost, IFileSystem fileSystem)
 {
     _userManager = userManager;
     _userDataManager = userDataManager;
     _logger = logger.GetLogger("Trakt");
     _traktApi = new TraktApi(jsonSerializer, _logger, httpClient, appHost, userDataManager, fileSystem);
 }
开发者ID:ryu4000,项目名称:MediaBrowser.Plugins,代码行数:17,代码来源:SyncFromTraktTask.cs

示例7: 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

示例8: SharingManager

 public SharingManager(SharingRepository repository, IServerConfigurationManager config, ILibraryManager libraryManager, IServerApplicationHost appHost)
 {
     _repository = repository;
     _config = config;
     _libraryManager = libraryManager;
     _appHost = appHost;
 }
开发者ID:rezafouladian,项目名称:Emby,代码行数:7,代码来源:SharingManager.cs

示例9: M3uParser

 public M3uParser(ILogger logger, IFileSystem fileSystem, IHttpClient httpClient, IServerApplicationHost appHost)
 {
     _logger = logger;
     _fileSystem = fileSystem;
     _httpClient = httpClient;
     _appHost = appHost;
 }
开发者ID:t-andre,项目名称:Emby,代码行数:7,代码来源:M3uParser.cs

示例10: OpenDashboardPage

        /// <summary>
        /// Opens the dashboard page.
        /// </summary>
        /// <param name="page">The page.</param>
        /// <param name="loggedInUser">The logged in user.</param>
        /// <param name="configurationManager">The configuration manager.</param>
        /// <param name="appHost">The app host.</param>
        /// <param name="logger">The logger.</param>
        public static void OpenDashboardPage(string page, User loggedInUser, IServerConfigurationManager configurationManager, IServerApplicationHost appHost, ILogger logger)
        {
            var url = "http://localhost:" + configurationManager.Configuration.HttpServerPortNumber + "/" +
                      appHost.WebApplicationName + "/dashboard/" + page;

            OpenUrl(url, logger);
        }
开发者ID:Kampari,项目名称:MediaBrowser,代码行数:15,代码来源:BrowserLauncher.cs

示例11: MainWindow

        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow" /> class.
        /// </summary>
        /// <param name="logManager">The log manager.</param>
        /// <param name="appHost">The app host.</param>
        /// <param name="configurationManager">The configuration manager.</param>
        /// <param name="userManager">The user manager.</param>
        /// <param name="libraryManager">The library manager.</param>
        /// <param name="jsonSerializer">The json serializer.</param>
        /// <param name="displayPreferencesManager">The display preferences manager.</param>
        /// <exception cref="System.ArgumentNullException">logger</exception>
        public MainWindow(ILogManager logManager, IServerApplicationHost appHost, IServerConfigurationManager configurationManager, IUserManager userManager, ILibraryManager libraryManager, IJsonSerializer jsonSerializer, IDisplayPreferencesRepository displayPreferencesManager)
        {
            if (logManager == null)
            {
                throw new ArgumentNullException("logManager");
            }
            if (appHost == null)
            {
                throw new ArgumentNullException("appHost");
            }
            if (configurationManager == null)
            {
                throw new ArgumentNullException("configurationManager");
            }

            _logger = logManager.GetLogger("MainWindow");
            _appHost = appHost;
            _logManager = logManager;
            _configurationManager = configurationManager;
            _userManager = userManager;
            _libraryManager = libraryManager;
            _jsonSerializer = jsonSerializer;
            _displayPreferencesManager = displayPreferencesManager;

            InitializeComponent();

            Loaded += MainWindowLoaded;
        }
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:39,代码来源:MainWindow.xaml.cs

示例12: StartupWizard

 /// <summary>
 /// Initializes a new instance of the <see cref="StartupWizard" /> class.
 /// </summary>
 /// <param name="appHost">The app host.</param>
 /// <param name="userManager">The user manager.</param>
 public StartupWizard(IServerApplicationHost appHost, IUserManager userManager, IServerConfigurationManager configurationManager, ILogger logger)
 {
     _appHost = appHost;
     _logger = logger;
     _userManager = userManager;
     _configurationManager = configurationManager;
 }
开发者ID:Jon-theHTPC,项目名称:MediaBrowser,代码行数:12,代码来源:StartupWizard.cs

示例13: ExternalPortForwarding

 public ExternalPortForwarding(ILogManager logmanager, IServerApplicationHost appHost, IServerConfigurationManager config, ISsdpHandler ssdp)
 {
     _logger = logmanager.GetLogger("PortMapper");
     _appHost = appHost;
     _config = config;
     _ssdp = ssdp;
 }
开发者ID:softworkz,项目名称:Emby,代码行数:7,代码来源:ExternalPortForwarding.cs

示例14: SessionWebSocketListener

 /// <summary>
 /// Initializes a new instance of the <see cref="SessionWebSocketListener" /> class.
 /// </summary>
 /// <param name="sessionManager">The session manager.</param>
 /// <param name="logManager">The log manager.</param>
 /// <param name="appHost">The application host.</param>
 public SessionWebSocketListener(ISessionManager sessionManager, ILogManager logManager, IServerApplicationHost appHost, IJsonSerializer json)
 {
     _sessionManager = sessionManager;
     _logger = logManager.GetLogger(GetType().Name);
     _appHost = appHost;
     _json = json;
 }
开发者ID:Nickolin,项目名称:MediaBrowser,代码行数:13,代码来源:SessionWebSocketListener.cs

示例15: ExternalPortForwarding

 public ExternalPortForwarding(ILogManager logmanager, IServerApplicationHost appHost, IServerConfigurationManager config, IDeviceDiscovery deviceDiscovery)
 {
     _logger = logmanager.GetLogger("PortMapper");
     _appHost = appHost;
     _config = config;
     _deviceDiscovery = deviceDiscovery;
 }
开发者ID:t-andre,项目名称:Emby,代码行数:7,代码来源:ExternalPortForwarding.cs


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