public SsbOutputSessionChannel(SsbChannelFactory factory, string connectionString, Uri via, EndpointAddress remoteAddress, BufferManager buffermanager, MessageEncoder encoder, bool endConversationOnClose, string contract, bool useEncryption, bool useActionForSsbMessageType) : base(factory) { if (via == null) { throw new ArgumentNullException("via"); } if (factory == null) { throw new ArgumentNullException("factory"); } if (encoder == null) { throw new ArgumentNullException("encoder"); } if (buffermanager == null) { throw new ArgumentNullException("bufferManager"); } if (String.IsNullOrEmpty(connectionString)) { throw new ArgumentNullException("connectionString"); } this.factory = factory; this.via = via; this.to = remoteAddress; this.session = new SsbSession(); this.encoder = encoder; this.bufferManager = buffermanager; this.connectionString = connectionString; this.contract = contract; this.useEncryption = useEncryption; this.useActionForSsbMessageType = useActionForSsbMessageType; this.sender = new SsbConversationSender(connectionString, via, factory, endConversationOnClose, contract, useEncryption); }
internal SsbConversationSender(string connectionString, Uri via, SsbChannelFactory factory, bool endConversationOnClose, string contract, bool useEncryption) { if (String.IsNullOrEmpty(connectionString)) { throw new ArgumentNullException("connectionString"); } if (via == null) { throw new ArgumentNullException("via"); } if (factory == null) { throw new ArgumentNullException("factory"); } SsbUri ssburi = new SsbUri(via); this.source = ssburi.Client; this.target = ssburi.Service; this.connectionString = connectionString; this.endConversationOnClose = endConversationOnClose; this.factory = factory; this.contract = contract; this.useEncryption = useEncryption; }