public DomotechService( IClient client, IConnectionStateService connectionStateService, IOptions <DomotechServiceOptions> options) { _client = client; _connectionStateService = connectionStateService; _options = options.Value; WireClientEvents(); }
public RedditHostedService(IMemoryCache cache, IRedditApiService apiService, IRedditFeedService feedService, IConnectionStateService stateService, ILogger <RedditHostedService> logger) { _cache = cache; _apiService = apiService; _stateService = stateService; _feedService = feedService; _logger = logger; }
public RedditFeedHub(IConnectionStateService stateService, IRedditFeedService feedService) { _stateService = stateService; _feedService = feedService; }
public ConnectionDetails Connection([Service] IConnectionStateService connectionStateService) => new ConnectionDetails { State = connectionStateService.GetState(), DownloadProgressInPercent = connectionStateService.GetDownloadProgressInPercent(), };