コード例 #1
0
 public ServiceBusOutputChannel(ServiceBusChannelFactory factory, EndpointAddress to, Uri via) : base(factory)
 {
     this.ChannelFactory           = factory;
     this.encoder                  = factory.MessageEncoderFactory.Encoder;
     this.maxBufferSize            = factory.MaxBufferSize;
     this.to                       = to;
     this.Via                      = via;
     this.messagingFactorySettings = factory.MessagingFactorySettings;
     this.messagingAddress         = new MessagingAddress(via, this.messagingFactorySettings.NetMessagingTransportSettings.GatewayMode);
     if (this.messagingAddress.Type != MessagingAddressType.Entity)
     {
         throw Microsoft.ServiceBus.Messaging.FxTrace.Exception.Argument("via", SRClient.EntityNameNotFound(via));
     }
 }
コード例 #2
0
 protected override IOutputChannel OnCreateChannel(EndpointAddress endpointAddress, Uri via)
 {
     ServiceBusChannelFactory.ValidateScheme(via);
     return(new ServiceBusOutputChannel(this, endpointAddress, via));
 }