Example #1
0
        /// <summary>
        /// Configures Rebus to use Azure Storage Queues to transport messages as a one-way client (i.e. will not be able to receive any messages)
        /// </summary>
        public static void UseAzureStorageQueuesAsOneWayClient(this StandardConfigurer <ITransport> configurer, string storageAccountConnectionStringOrName)
        {
            var storageAccount = AzureConfigurationHelper.GetStorageAccount(storageAccountConnectionStringOrName);

            Register(configurer, null, storageAccount);

            OneWayClientBackdoor.ConfigureOneWayClient(configurer);
        }
Example #2
0
        /// <summary>
        /// Configures Rebus to store subscriptions using Azure Table Storage
        /// </summary>
        public static void StoreInTableStorage(this StandardConfigurer <ISubscriptionStorage> configurer, string storageAccountConnectionStringOrName, string tableName = "RebusSubscriptions", bool isCentralized = false)
        {
            var cloudStorageAccount = AzureConfigurationHelper.GetStorageAccount(storageAccountConnectionStringOrName);

            Register(configurer, tableName, cloudStorageAccount, isCentralized);
        }
Example #3
0
        /// <summary>
        /// Configures Rebus to use Azure Storage Queues to transport messages
        /// </summary>
        public static void UseAzureStorageQueues(this StandardConfigurer <ITransport> configurer, string storageAccountConnectionStringOrName, string inputQueueAddress)
        {
            var storageAccount = AzureConfigurationHelper.GetStorageAccount(storageAccountConnectionStringOrName);

            Register(configurer, inputQueueAddress, storageAccount);
        }