NetTcpContextBinding(NetTcpBinding netTcpBinding) { NetTcpContextBindingPropertyTransferHelper helper = new NetTcpContextBindingPropertyTransferHelper(); helper.InitializeFrom(netTcpBinding); helper.SetBindingElementType(typeof(NetTcpContextBinding)); helper.ApplyConfiguration(this); }
private NetTcpContextBinding(NetTcpBinding netTcpBinding) { this.contextManagementEnabled = true; this.contextProtectionLevel = ProtectionLevel.Sign; NetTcpContextBindingPropertyTransferHelper helper = new NetTcpContextBindingPropertyTransferHelper(); helper.InitializeFrom(netTcpBinding); helper.SetBindingElementType(typeof(NetTcpContextBinding)); helper.ApplyConfiguration(this); }