internal void InitializeFrom(BasicHttpRelayMessageSecurity security)
 {
     if (security == null)
     {
         throw Microsoft.ServiceBus.Diagnostics.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     this.ClientCredentialType = security.ClientCredentialType;
     this.AlgorithmSuite       = security.AlgorithmSuite;
 }
 internal void ApplyConfiguration(BasicHttpRelayMessageSecurity security)
 {
     if (security == null)
     {
         throw Microsoft.ServiceBus.Diagnostics.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
     }
     security.ClientCredentialType = this.ClientCredentialType;
     if (base.ElementInformation.Properties["algorithmSuite"].ValueOrigin != PropertyValueOrigin.Default)
     {
         security.AlgorithmSuite = this.AlgorithmSuite;
     }
 }