static void DoIt(TransportConfigurer configurer, string connectionString, string inputQueueName, string errorQueueName) { var queue = new RabbitMqMessageQueue(connectionString, inputQueueName, errorQueueName); configurer.UseSender(queue); configurer.UseReceiver(queue); configurer.UseErrorTracker(new ErrorTracker(errorQueueName)); }
public static void UseMsmqInOneWayClientMode(this TransportConfigurer configurer) { var msmqMessageQueue = MsmqMessageQueue.Sender(); configurer.UseSender(msmqMessageQueue); var gag = new OneWayClientGag(); configurer.UseReceiver(gag); configurer.UseErrorTracker(gag); }
static void DoIt(TransportConfigurer configurer, string inputQueueName, string errorQueueName) { if (string.IsNullOrEmpty(inputQueueName)) { throw new ConfigurationErrorsException("You need to specify an input queue."); } var msmqMessageQueue = new MsmqMessageQueue(inputQueueName, errorQueueName); configurer.UseSender(msmqMessageQueue); configurer.UseReceiver(msmqMessageQueue); }
static void DoItEncrypted(TransportConfigurer configurer, string inputQueueName, string iv, string key, string errorQueueName) { if (string.IsNullOrEmpty(inputQueueName)) { throw new ConfigurationErrorsException("You need to specify an input queue."); } var msmqMessageQueue = new MsmqMessageQueue(inputQueueName, errorQueueName); var encryptionFilter = new RijndaelEncryptionTransportDecorator(msmqMessageQueue, msmqMessageQueue, iv, key); configurer.UseSender(encryptionFilter); configurer.UseReceiver(encryptionFilter); }
static void DoIt(TransportConfigurer configurer, string inputQueueName, string errorQueueName) { if (string.IsNullOrEmpty(inputQueueName)) { throw new ConfigurationErrorsException("You need to specify an input queue."); } var msmqMessageQueue = new MsmqMessageQueue(inputQueueName); var errorQueuePath = MsmqUtil.GetPath(errorQueueName); MsmqUtil.EnsureMessageQueueExists(errorQueuePath); MsmqUtil.EnsureMessageQueueIsTransactional(errorQueuePath); configurer.UseSender(msmqMessageQueue); configurer.UseReceiver(msmqMessageQueue); configurer.UseErrorTracker(new ErrorTracker(errorQueueName)); }
static void DoItEncrypted(TransportConfigurer configurer, string inputQueueName, string iv, string key) { if (string.IsNullOrEmpty(inputQueueName)) { throw new ConfigurationErrorsException("You need to specify an input queue."); } var msmqMessageQueue = new MsmqMessageQueue(inputQueueName); var encryptionFilter = new EncryptionFilter(msmqMessageQueue, msmqMessageQueue, iv, key); configurer.UseSender(encryptionFilter); configurer.UseReceiver(encryptionFilter); }
static void DoIt(TransportConfigurer configurer, string inputQueueName) { if (string.IsNullOrEmpty(inputQueueName)) { throw new ConfigurationErrorsException("You need to specify an input queue."); } var msmqMessageQueue = new MsmqMessageQueue(inputQueueName); configurer.UseSender(msmqMessageQueue); configurer.UseReceiver(msmqMessageQueue); }