예제 #1
0
        /// <summary>
        /// Configuration to use Azure Service Bus in CAP.
        /// </summary>
        /// <param name="options">CAP configuration options</param>
        /// <param name="connectionString">Connection string for namespace or the entity.</param>
        public static CapOptions UseAzureServiceBus(this CapOptions options, string connectionString)
        {
            if (connectionString == null)
            {
                throw new ArgumentNullException(nameof(connectionString));
            }

            return(options.UseAzureServiceBus(opt => { opt.ConnectionString = connectionString; }));
        }