예제 #1
0
파일: Startup.cs 프로젝트: sn7a7ke/Analysis
        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>();
        }
예제 #2
0
 public PomRawAppService(IExternalStorage externalStorage, PomRawStorage pomStorage)
 {
     this.externalStorage = externalStorage;
     this.pomStorage      = pomStorage;
 }