Beispiel #1
0
        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>();
        }
Beispiel #2
0
 public PomRawAppService(IExternalStorage externalStorage, PomRawStorage pomStorage)
 {
     this.externalStorage = externalStorage;
     this.pomStorage      = pomStorage;
 }