Ejemplo n.º 1
0
 public EnergySummaryRepoStore(
     ILogger logger,
     IMediator mediator,
     IAppCache cache,
     IRepoConfig config,
     IApplicationVersion versionConfig,
     IEnergySummaryDocumentReadRepository energySummaryReadRepository,
     IEnergySummaryRepository energySummaryRepository)
 {
     _persistFunctions = new PersistToRepositoryFunctions <EnergySummary, EnergySummaryReadModel>(
         energySummaryReadRepository,
         energySummaryRepository,
         versionConfig,
         logger,
         config,
         cache,
         "persistEnergySummaryList",
         mediator,
         GetKeyExtensions.GetKey,
         GetKeyExtensions.GetKeyVersion2);
 }
 public BatteryInverterTemperatureSummaryRepoStore(
     ILogger logger,
     IMediator mediator,
     IAppCache cache,
     IRepoConfig config,
     IApplicationVersion versionConfig,
     IInverterTemperatureSummaryDocumentReadRepository readRepo,
     IBatteryInverterTemperatureSummaryRepository writeRepo)
 {
     _persistFunctions = new PersistToRepositoryFunctions <InverterTemperatureSummary, BatteryInverterTemperatureSummaryReadModel>(
         readRepo,
         writeRepo,
         versionConfig,
         logger,
         config,
         cache,
         "persistBatteryInverterTemperatureSummaryList",
         mediator,
         GetKeyExtensions.GetKey,
         GetKeyExtensions.GetKeyVersion2);
 }