Esempio 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 MySqlRelationalDbStorageFactory(IOptions <MySqlStateBackendOptions> options)
 {
     _options = options.Value;
 }