Exemplo n.º 1
0
 public MySqlDomainEventStateBackend(
     IRelationalDbStorageFactory factory,
     ILogger <MySqlDomainEventStateBackend> logger,
     ITypeResolver typeResolver,
     IOptions <MySqlStateBackendOptions> options,
     IBinarySerializer binarySerializer)
 {
     _logger           = logger;
     _db               = factory.CreateRelationalDbStorage(DatabaseScheme.StateDb);
     _typeResolver     = typeResolver;
     _binarySerializer = binarySerializer;
     _options          = options.Value;
 }
 public MySqlAggregateRootCheckpointStateBackend(
     IRelationalDbStorageFactory storageFactory,
     ILoggerFactory loggerFactory,
     ITypeResolver typeResolver,
     IOptions <MySqlStateBackendOptions> options,
     IBinarySerializer binarySerializer)
 {
     _logger           = loggerFactory.CreateLogger(typeof(MySqlAggregateRootCheckpointStateBackend <TPayload>));
     _db               = storageFactory.CreateRelationalDbStorage(DatabaseScheme.StateDb);
     _typeResolver     = typeResolver;
     _binarySerializer = binarySerializer;
     _options          = options.Value;
 }
 public MySqlTransferringReadDbSynchronizer(IRelationalDbStorageFactory db)
 {
     _db = db.CreateRelationalDbStorage(DatabaseScheme.ReadDb);
 }
Exemplo n.º 4
0
 public MySqlBankAccountReadDbSynchronizer(IRelationalDbStorageFactory db)
 {
     _db = db.CreateRelationalDbStorage(DatabaseScheme.ReadDb);
 }
 public MySqWithdrawReadDbSynchronizer(IRelationalDbStorageFactory db)
 {
     _db = db.CreateRelationalDbStorage(DatabaseScheme.ReadDb);
 }
Exemplo n.º 6
0
 public MySqlBankAccountRepository(IRelationalDbStorageFactory db)
 {
     _db = db.CreateRelationalDbStorage(DatabaseScheme.StateDb);
 }
 public MySqlBankAccountQueryService(IRelationalDbStorageFactory db)
 {
     _db = db.CreateRelationalDbStorage(DatabaseScheme.ReadDb);
 }