Esempio n. 1
0
 internal void InitializeFrom(NetTcpRelaySecurity 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);
 }
Esempio n. 2
0
 internal void ApplyConfiguration(NetTcpRelaySecurity 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);
 }