public static ServiceBusMessageChannel Create(ChannelIdentifier channelIdentifier, string storageAccountConnectionstring)
        {
            var channel = new ServiceBusMessageChannel(channelIdentifier, storageAccountConnectionstring);

            channel.Initialize();
            return(channel);
        }
 public ServiceBusMessageChannel GetChannel(ChannelIdentifier identifier)
 {
     if (!_channels.ContainsKey(identifier))
     {
         lock (_channelCreationLockObject)
         {
             if (!_channels.ContainsKey(identifier))
             {
                 _channels[identifier] = ServiceBusMessageChannel.Create(identifier, _storageAccountConnectionstring);
             }
         }
     }
     return(_channels[identifier]);
 }
Ejemplo n.º 3
0
 public ServiceBusMessageSource(ServiceBusMessageChannel channel)
 {
     _channel = channel;
 }
Ejemplo n.º 4
0
 public ServiceBusMessageSender(ServiceBusMessageChannel channel)
 {
     this._channel = channel;
 }