private DuplexChannelFactory <IDataExchangeChannel> CreateDataChannelFactory(QueueBufferedStream multiplexedInputStream) { ReplyChannelStreamConnector connector = new ReplyChannelStreamConnector(multiplexedInputStream); DuplexChannelFactory <IDataExchangeChannel> dataChannelFactory = new DuplexChannelFactory <IDataExchangeChannel>(connector, streamBinding); dataChannelFactory.Endpoint.Behaviors.Add(relayCreds); return(dataChannelFactory); }
private DuplexChannelFactory<IDataExchangeChannel> CreateDataChannelFactory(Microsoft.Samples.ServiceBus.Connections.QueueBufferedStream multiplexedInputStream) { ReplyChannelStreamConnector connector = new ReplyChannelStreamConnector(multiplexedInputStream); DuplexChannelFactory<IDataExchangeChannel> dataChannelFactory = new DuplexChannelFactory<IDataExchangeChannel>(connector, streamBinding); dataChannelFactory.Endpoint.Behaviors.Add(relayCreds); return dataChannelFactory; }