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

            return(CreateBus(connectionString, settings));
        }