internal void InitializeFrom(NamedPipeConnectionPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } SetPropertyValueIfNotDefaultValue(ConfigurationStrings.GroupName, settings.GroupName); SetPropertyValueIfNotDefaultValue(ConfigurationStrings.IdleTimeout, settings.IdleTimeout); SetPropertyValueIfNotDefaultValue(ConfigurationStrings.MaxOutboundConnectionsPerEndpoint, settings.MaxOutboundConnectionsPerEndpoint); }
internal void ApplyConfiguration(NamedPipeConnectionPoolSettings settings) { if (null == settings) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("settings"); } settings.GroupName = this.GroupName; settings.IdleTimeout = this.IdleTimeout; settings.MaxOutboundConnectionsPerEndpoint = this.MaxOutboundConnectionsPerEndpoint; }
internal bool IsMatch(NamedPipeConnectionPoolSettings namedPipe) { if (this.groupName != namedPipe.groupName) return false; if (this.idleTimeout != namedPipe.idleTimeout) return false; if (this.maxOutputConnectionsPerEndpoint != namedPipe.maxOutputConnectionsPerEndpoint) return false; return true; }
protected NamedPipeTransportBindingElement(NamedPipeTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { this.connectionPoolSettings = new NamedPipeConnectionPoolSettings(); if (elementToBeCloned.allowedUsers != null) { this.allowedUsers = new List <SecurityIdentifier>(elementToBeCloned.AllowedUsers.Count); foreach (SecurityIdentifier identifier in elementToBeCloned.allowedUsers) { this.allowedUsers.Add(identifier); } } this.connectionPoolSettings = elementToBeCloned.connectionPoolSettings.Clone(); }
protected NamedPipeTransportBindingElement(NamedPipeTransportBindingElement elementToBeCloned) : base(elementToBeCloned) { if (elementToBeCloned.allowedUsers != null) { foreach (SecurityIdentifier id in elementToBeCloned.allowedUsers) { this.allowedUsers.Add(id); } } this.connectionPoolSettings = elementToBeCloned.connectionPoolSettings.Clone(); this.settings = elementToBeCloned.settings.Clone(); }
internal bool IsMatch(NamedPipeConnectionPoolSettings namedPipe) { if (this.groupName != namedPipe.groupName) { return(false); } if (this.idleTimeout != namedPipe.idleTimeout) { return(false); } if (this.maxOutputConnectionsPerEndpoint != namedPipe.maxOutputConnectionsPerEndpoint) { return(false); } return(true); }
internal NamedPipeConnectionPoolSettings(NamedPipeConnectionPoolSettings namedPipe) { this.groupName = namedPipe.groupName; this.idleTimeout = namedPipe.idleTimeout; this.maxOutputConnectionsPerEndpoint = namedPipe.maxOutputConnectionsPerEndpoint; }
internal void CopyPropertiesFrom (NamedPipeConnectionPoolSettings other) { group_name = other.group_name; idle_timeout = other.idle_timeout; max_conn = other.max_conn; }
internal void CopyPropertiesFrom(NamedPipeConnectionPoolSettings other) { group_name = other.group_name; idle_timeout = other.idle_timeout; max_conn = other.max_conn; }
public NamedPipeTransportBindingElement() { this.connectionPoolSettings = new NamedPipeConnectionPoolSettings(); }