Пример #1
0
 public static void UseSqlServer(this StandardConfigurer <ITransport> configurer, string connectionString, string inputQueueName, bool enlistInAmbientTransaction = false, bool ensureTablesAreCreated = true)
 {
     configurer.UseSqlServer(new SqlServerTransportOptions(connectionString, enlistInAmbientTransaction), inputQueueName)
     .ReadFrom(inputQueueName)
     .SetEnsureTablesAreCreated(ensureTablesAreCreated);
 }
Пример #2
0
 public static void UseSqlServer(this StandardConfigurer <ITransport> configurer, Func <Task <IDbConnection> > connectionFactory, string inputQueueName, bool ensureTablesAreCreated = true)
 {
     configurer.UseSqlServer(new SqlServerTransportOptions(connectionFactory), inputQueueName)
     .ReadFrom(inputQueueName)
     .SetEnsureTablesAreCreated(ensureTablesAreCreated);
 }