コード例 #1
0
 internal void InitializeFrom(NetOnewayRelaySecurity 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);
 }
コード例 #2
0
 internal void ApplyConfiguration(NetOnewayRelaySecurity 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);
 }