internal void ApplyConfiguration(NetTcpSecurity security)
        {
            if (security == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(security));
            }

            security.Mode = Mode;
            Transport.ApplyConfiguration(security.Transport);
            Message.ApplyConfiguration(security.Message);
        }