示例#1
0
 public static void UseSqlServerAsOneWayClient(this StandardConfigurer <ITransport> configurer, string connectionString, bool enlistInAmbientTransaction = false)
 {
     configurer.UseSqlServerAsOneWayClient(new SqlServerTransportOptions(connectionString, enlistInAmbientTransaction))
     .AsOneWayClient();
 }
示例#2
0
 public static void UseSqlServerAsOneWayClient(this StandardConfigurer <ITransport> configurer, Func <Task <IDbConnection> > connectionFactory)
 {
     configurer.UseSqlServerAsOneWayClient(new SqlServerTransportOptions(connectionFactory));
 }