public StoragesConfiguration EnableReserveIdStorage(string tableName = ReservedTable,
     string dbSchema = ReservedSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new ReservedIdRowCreator(_factory).WithTableName(tableName, dbSchema).IfExists(ifExists).Create();
     _host.WithReserveIdStorage(new ReservedIdStorage(_factory));
     return this;
 }
 public StoragesConfiguration EnableSagaStorage(string tableName = SagaTable,
     string dbSchema = SagaSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new SagaRowCreator(_factory).WithTableName(tableName, dbSchema).IfExists(ifExists).Create();
     _host.ConfigureSagas(s => s.WithSagaStorage(new SagaStorage(_factory)));
     return this;
 }
 public StoragesConfiguration EnableProcessorStorage(string tableName=ProcessorTable,string dbSchema=ProcessorSchema,TableExistsAction ifExists=TableExistsAction.Ignore)
 {
     new IdemRowCreator(_factory).WithTableName("dbus_idems", dbSchema).Create();
     new ProcessorMessagesRowCreator(_factory).WithTableName(tableName,dbSchema).IfExists(ifExists).Create();
     _host.WithProcessingStorage(new ProcessorStore(_factory));
     return this;
 }
예제 #4
0
 public StoragesConfiguration EnableReserveIdStorage(string tableName = ReservedTable,
                                                     string dbSchema  = ReservedSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new ReservedIdRowCreator(_factory).WithTableName(tableName, dbSchema).IfExists(ifExists).Create();
     _host.WithReserveIdStorage(new ReservedIdStorage(_factory));
     return(this);
 }
예제 #5
0
 public StoragesConfiguration EnableSagaStorage(string tableName = SagaTable,
                                                string dbSchema  = SagaSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new SagaRowCreator(_factory).WithTableName(tableName, dbSchema).IfExists(ifExists).Create();
     _host.ConfigureSagas(s => s.WithSagaStorage(new SagaStorage(_factory)));
     return(this);
 }
예제 #6
0
 public StoragesConfiguration EnableProcessorStorage(string tableName = ProcessorTable, string dbSchema = ProcessorSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new IdemRowCreator(_factory).WithTableName("dbus_idems", dbSchema).Create();
     new ProcessorMessagesRowCreator(_factory).WithTableName(tableName, dbSchema).IfExists(ifExists).Create();
     _host.WithProcessingStorage(new ProcessorStore(_factory));
     return(this);
 }
예제 #7
0
 public static IConfigureDispatcher CommunicateBySqlServerStorage(this IConfigureDispatcher cfg, string cnxString, string table = Sql.Extensions.CommunicatorTable, string dbSchema = Sql.Extensions.CommunicatorSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     return(cfg.CommunicateBySqlStorage(GetFactory(cnxString), table, dbSchema, ifExists));
 }
예제 #8
0
 public ATypedStorageCreator <T> IfExists(TableExistsAction action)
 {
     HandleExistingTable = action;
     return(this);
 }
예제 #9
0
 public static IConfigureDispatcher CommunicateBySqlStorage(this IConfigureDispatcher cfg,IDbFactory connection,string table=CommunicatorTable,string dbSchema=CommunicatorSchema,TableExistsAction ifExists=TableExistsAction.Ignore)
 {
     new ClientToServerRowCreator(connection).WithTableName(table,dbSchema).IfExists(ifExists).Create();
     return cfg.TalkUsing(new ClientToServer(connection));
 }
예제 #10
0
 public static IConfigureDispatcher CommunicateBySqlServerStorage(this IConfigureDispatcher cfg, string cnxString, string table = Sql.Extensions.CommunicatorTable, string dbSchema = Sql.Extensions.CommunicatorSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     return cfg.CommunicateBySqlStorage(GetFactory(cnxString), table, dbSchema, ifExists);
 }
예제 #11
0
 public static IConfigureDispatcher CommunicateBySqlStorage(this IConfigureDispatcher cfg, IDbFactory connection, string table = CommunicatorTable, string dbSchema = CommunicatorSchema, TableExistsAction ifExists = TableExistsAction.Ignore)
 {
     new ClientToServerRowCreator(connection).WithTableName(table, dbSchema).IfExists(ifExists).Create();
     return(cfg.TalkUsing(new ClientToServer(connection)));
 }
예제 #12
0
 public IConfigureTable <T> HandleExisting(TableExistsAction action)
 {
     _data.CreationOptions = action;
     return(this);
 }