Beispiel #1
0
 public CommandCapture(IAppConfiguration appConfiguration, ITheCatWebAPI theCatAPI, ICatBreedsRepositories breedsRepository, ICategoryRepository categoryRepository, IImageUrlRepositories imageUrlRepository)
 {
     this.appSettings        = appConfiguration.GetAppSettings();
     this.theCatAPI          = theCatAPI;
     this.breedsRepository   = breedsRepository;
     this.categoryRepository = categoryRepository;
     this.imageUrlRepository = imageUrlRepository;
 }
Beispiel #2
0
        /// <summary>
        /// Construtor recebe o objeto AppSettings para que possa ter as informações
        /// da URL e métodos do ELK. Estas informações veem do arquivo AppSettings.json
        /// </summary>
        /// <param name="appSettings"></param>
        public ELKIntegrationService(IAppConfiguration appConfiguration)
        {
            var appSettings = appConfiguration.GetAppSettings();

            baseURL   = appSettings.ELKSettings.BaseURL;
            indexName = appSettings.ELKSettings.IndexName;
            docMethod = appSettings.ELKSettings.DocMethod;
        }
Beispiel #3
0
 public TheCatWebAPIService(IAppConfiguration appConfiguration)
 {
     this.appSettings = appConfiguration.GetAppSettings();
 }
Beispiel #4
0
 public TheCatDBContext(IAppConfiguration appConfiguration)
 {
     this.appSettings = appConfiguration.GetAppSettings();
 }