NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity) { Fx.Assert(SecurityModeHelper.IsDefined(mode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); this.mode = mode; this.transportSecurity = transportSecurity == null ? new TcpTransportSecurity() : transportSecurity; }
private NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity) { Fx.Assert(SecurityModeHelper.IsDefined(mode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); _mode = mode; Transport = transportSecurity ?? new TcpTransportSecurity(); }