public static IAsbOptions UseAzureServiceBusInOneWayClientMode(this RebusTransportConfigurer configurer, string connectionString) { IAsbOptions asbOptionsToReturn; if (ShouldEmulateAzureEnvironment(connectionString)) { var sender = MsmqMessageQueue.Sender(); configurer.UseSender(sender); asbOptionsToReturn = new NoopAsbOptions(); } else { var sender = AzureServiceBusMessageQueue.Sender(connectionString); configurer.UseSender(sender); asbOptionsToReturn = new AsbOptions(sender); } var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); return(asbOptionsToReturn); }
/// <summary> /// Configures Rebus to run in one-way client mode, which means that the bus is capable only of sending messages. /// </summary> public static void UseTheFileSystemInOneWayClientMode(this RebusTransportConfigurer configurer, string baseDirectory) { var transport = FileSystemMessageQueue.Sender(baseDirectory); configurer.UseSender(transport); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }
/// <summary> /// Configures Rebus to run in one-way client mode, which means that the bus is capable only of sending messages. /// </summary> public static void UseMsmqInOneWayClientMode(this RebusTransportConfigurer configurer) { var msmqMessageQueue = MsmqMessageQueue.Sender(); configurer.UseSender(msmqMessageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }
public static void UseMsmqInOneWayClientMode(this TransportConfigurer configurer) { var msmqMessageQueue = MsmqMessageQueue.Sender(); configurer.UseSender(msmqMessageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }
/// <summary> /// Configures Rebus to run in one-way client mode, which means that the bus is capable only of sending messages. /// </summary> public static void UseTheFileSystemInOneWayClientMode(this RebusTransportConfigurer configurer, string baseDirectory) { var transport = FileSystemMessageQueue.Sender(baseDirectory); configurer.UseSender(transport); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }
/// <summary> /// Configures Rebus to run in one-way client mode, which means that the bus is capable only of sending messages. /// </summary> public static SqlServerMessageQueueOptions UseSqlServerInOneWayClientMode(this RebusTransportConfigurer configurer, string connectionStringOrConnectionStringName, string MessageTableName) { var connectionStringToUse = Rebus.Shared.ConnectionStringUtil.GetConnectionStringToUse(connectionStringOrConnectionStringName); var sqlServerMessageQueue = SqlServerMessageQueue.Sender(connectionStringToUse, MessageTableName); configurer.UseSender(sqlServerMessageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); return new SqlServerMessageQueueOptions(sqlServerMessageQueue); }
/// <summary> /// Configures Rebus to run in one-way client mode, which means that the bus is capable only of sending messages. /// </summary> public static SqlServerMessageQueueOptions UseSqlServerInOneWayClientMode(this RebusTransportConfigurer configurer, string connectionStringOrConnectionStringName, string MessageTableName) { var connectionStringToUse = Rebus.Shared.ConnectionStringUtil.GetConnectionStringToUse(connectionStringOrConnectionStringName); var sqlServerMessageQueue = SqlServerMessageQueue.Sender(connectionStringToUse, MessageTableName); configurer.UseSender(sqlServerMessageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); return(new SqlServerMessageQueueOptions(sqlServerMessageQueue)); }
static RabbitMqOptions DoItOneWay(RebusTransportConfigurer configurer, string connectionString) { var messageQueue = RabbitMqMessageQueue.Sender(connectionString); configurer.UseSender(messageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); return(new RabbitMqOptions(messageQueue, configurer)); }
public static void UseAzureServiceBusInOneWayClientMode(this RebusTransportConfigurer configurer, string connectionString) { if (ShouldEmulateAzureEnvironment(connectionString)) { var sender = MsmqMessageQueue.Sender(); configurer.UseSender(sender); } else { var sender = AzureServiceBusMessageQueue.Sender(connectionString); configurer.UseSender(sender); } var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }