public static IBus CreateBus(string connectionString, AzureNetQSettings settings) { settings.ConnectionConfiguration.ConnectionString = connectionString; return(new AzureBus( settings.Logger(), settings.Conventions(), settings.Rpc(), settings.SendAndReceive(), settings.AzureAdvancedBus.Value, settings.ConnectionConfiguration, settings.Serializer())); }
public static IBus CreateBus(AzureNetQSettings settings) { var connectionString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString"); return(CreateBus(connectionString, settings)); }