Esempio n. 1
0
        public DomotechService(
            IClient client,
            IConnectionStateService connectionStateService,
            IOptions <DomotechServiceOptions> options)
        {
            _client = client;
            _connectionStateService = connectionStateService;
            _options = options.Value;

            WireClientEvents();
        }
Esempio n. 2
0
 public RedditHostedService(IMemoryCache cache,
                            IRedditApiService apiService,
                            IRedditFeedService feedService,
                            IConnectionStateService stateService,
                            ILogger <RedditHostedService> logger)
 {
     _cache        = cache;
     _apiService   = apiService;
     _stateService = stateService;
     _feedService  = feedService;
     _logger       = logger;
 }
Esempio n. 3
0
 public RedditFeedHub(IConnectionStateService stateService,
                      IRedditFeedService feedService)
 {
     _stateService = stateService;
     _feedService  = feedService;
 }
Esempio n. 4
0
 public ConnectionDetails Connection([Service] IConnectionStateService connectionStateService)
 => new ConnectionDetails
 {
     State = connectionStateService.GetState(),
     DownloadProgressInPercent = connectionStateService.GetDownloadProgressInPercent(),
 };