internal void InitializeFrom(BasicHttpRelaySecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.Mode = security.Mode; this.RelayClientAuthenticationType = security.RelayClientAuthenticationType; this.Transport.InitializeFrom(security.Transport); this.Message.InitializeFrom(security.Message); }
internal void ApplyConfiguration(BasicHttpRelaySecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.Mode = this.Mode; security.RelayClientAuthenticationType = this.RelayClientAuthenticationType; this.Transport.ApplyConfiguration(security.Transport); this.Message.ApplyConfiguration(security.Message); }