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; }
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); }
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)); }
public ATypedStorageCreator <T> IfExists(TableExistsAction action) { HandleExistingTable = action; return(this); }
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)); }
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); }
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))); }
public IConfigureTable <T> HandleExisting(TableExistsAction action) { _data.CreationOptions = action; return(this); }