Update con servizio singleton x gestione MtcService
This commit is contained in:
@@ -20,13 +20,17 @@ namespace MP.Data
|
||||
//services.TryAddSingleton<IRedisService, RedisService>();
|
||||
//services.TryAddSingleton<IRedisSubscriptionManager, RedisSubscriptionManager>();
|
||||
|
||||
// Repository Singleton
|
||||
services.TryAddSingleton<IMtcSetupRepository, MtcSetupRepository>();
|
||||
|
||||
// Repository Scoped
|
||||
services.TryAddScoped<IMtcSetupRepository, MtcSetupRepository>();
|
||||
services.TryAddScoped<IStatsAggrRepository, StatsAggrRepository>();
|
||||
services.TryAddScoped<IStatsDetailRepository, StatsDetailRepository>();
|
||||
|
||||
// Servizi Singleton
|
||||
services.TryAddSingleton<IMtcSetupService, MtcSetupService>();
|
||||
|
||||
// Servizi Scoped
|
||||
services.TryAddScoped<IMtcSetupService, MtcSetupService>();
|
||||
services.TryAddScoped<IStatsAggrService, StatsAggrService>();
|
||||
services.TryAddScoped<IStatsDetailService, StatsDetailService>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user