Beispiel #1
0
        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()));
        }
Beispiel #2
0
        public static IBus CreateBus(AzureNetQSettings settings)
        {
            var connectionString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString");

            return(CreateBus(connectionString, settings));
        }