private void ConfigureModules(IServiceCollection services) { services.AddSingleton(this.appSettings); var pomRawStorage = new PomRawStorage(this.appSettings); services.AddSingleton(pomRawStorage); services.AddSingleton <IExternalStorage, PomCovidExternalStorage>(); services.AddScoped <PomTotalStorage>(); services.AddScoped <PomDailyStorage>(); services.AddScoped <IRawAppService, PomRawAppService>(); services.AddScoped <PomTotalAppService>(); services.AddScoped <PomDailyAppService>(); services.AddScoped <PomTableAppService>(); }
public PomRawAppService(IExternalStorage externalStorage, PomRawStorage pomStorage) { this.externalStorage = externalStorage; this.pomStorage = pomStorage; }