Пример #1
0
 public TvShowsDownloadClientController(
     IHttpClientFactory httpClientFactory,
     TvShowsSettingsProvider tvShowsSettingsProvider,
     DownloadClientsSettingsProvider downloadClientsSettingsProvider)
 {
     _tvShowsSettings         = tvShowsSettingsProvider.Provide();
     _downloadClientsSettings = downloadClientsSettingsProvider.Provide();
     _httpClientFactory       = httpClientFactory;
 }
 public TvShowsDownloadClientController(
     IHttpClientFactory httpClientFactory,
     IOptionsSnapshot <TvShowsSettings> tvShowsSettingsAccessor,
     IOptionsSnapshot <DownloadClientsSettings> botClientsSettingsAccessor)
 {
     _tvShowsSettings         = tvShowsSettingsAccessor.Value;
     _downloadClientsSettings = botClientsSettingsAccessor.Value;
     _httpClientFactory       = httpClientFactory;
 }
Пример #3
0
 public MovieDownloadClientController(
     IHttpClientFactory httpClientFactory,
     IOptionsSnapshot <MoviesSettings> moviesSettingsAccessor,
     IOptionsSnapshot <DownloadClientsSettings> botClientsSettingsAccessor)
 {
     _moviesSettings          = moviesSettingsAccessor.Value;
     _downloadClientsSettings = botClientsSettingsAccessor.Value;
     _httpClientFactory       = httpClientFactory;
 }
Пример #4
0
 public MovieDownloadClientController(
     IHttpClientFactory httpClientFactory,
     MoviesSettingsProvider moviesSettingsProvider,
     DownloadClientsSettingsProvider downloadClientsSettingsProvider)
 {
     _moviesSettings          = moviesSettingsProvider.Provide();
     _downloadClientsSettings = downloadClientsSettingsProvider.Provide();
     _httpClientFactory       = httpClientFactory;
 }