示例#1
0
 public FinancialService(
     IEventStore eventStore,
     ReadStoreContext context,
     INotificationService notifiactions,
     IEnumerable <IFinancialDataExtractor> dataExtractors,
     ICryptoService cryptoService)
 {
     _eventStore     = eventStore;
     _context        = context;
     _notifications  = notifiactions;
     _dataExtractors = dataExtractors;
     _cryptoService  = cryptoService;
 }
示例#2
0
 public HomeBoxService(
     IEwelinkClient ewelinkClient,
     INotificationService notifications,
     IEventStore eventStore,
     ReadStoreContext readStore,
     IMemoryCache memoryCache)
 {
     _ewelinkClient = ewelinkClient;
     _notifications = notifications;
     _eventStore    = eventStore;
     _readStore     = readStore;
     _memoryCache   = memoryCache;
     _deviceTypes   = new Dictionary <int, HomeBoxDeviceType>
     {
         { 1, HomeBoxDeviceType.Switch },
         { 59, HomeBoxDeviceType.RgbLight },
         { 104, HomeBoxDeviceType.RgbwLight }
     };
 }
示例#3
0
 public HomeBoxEventHandlers(ReadStoreContext context)
 {
     _context = context;
 }
示例#4
0
 public RedirectionEventHandler(ReadStoreContext context)
 {
     _context = context;
 }
示例#5
0
 public FinancialEventHandlers(ReadStoreContext context)
 {
     _context = context;
 }
示例#6
0
 public SecretVaultEventHandler(ReadStoreContext context)
 {
     _context = context;
 }
 public BackupProcessManager(IEventStore es, EventStoreContext esContext, ReadStoreContext rsContext)
 {
     _es        = es;
     _esContext = esContext;
     _rsContext = rsContext;
 }