/// <summary> /// Creates a new full duplex channel, in which the current <see cref="AppDomain"/> is the instantiator. /// </summary> /// <param name="localEndPointConfig">Configuration for the local endpoint.</param> public DuplexChannel(EndPointConfigurationData <TRemoteEndPoint> localEndPointConfig) : this(localEndPointConfig, ChannelProperties.CreateRandomChannelProperties()) { }
/// <summary> /// Initializes a new instance of <see cref="SimplexChannel{TEndPoint}" /> using the given configuration data. /// </summary> /// <exception cref="ArgumentException"></exception> /// <param name="endPointConfigurationData"></param> public SimplexChannel(EndPointConfigurationData <TEndPoint> endPointConfigurationData) { AssertEndpointConfigurationData(endPointConfigurationData, "endPointConfigurationData"); _channelProperties = ChannelProperties.CreateRandomChannelProperties(); _endPointConfig = endPointConfigurationData; }