internal AmqpChannelProperties() { this.brokerHost = AmqpDefaults.BrokerHost; this.brokerPort = AmqpDefaults.BrokerPort; this.transferMode = AmqpDefaults.TransferMode; this.defaultMessageProperties = null; this.amqpSecurityMode = AmqpSecurityMode.None; this.amqpTransportSecurity = null; this.amqpCredential = null; this.maxBufferPoolSize = AmqpDefaults.MaxBufferPoolSize; this.maxReceivedMessageSize = AmqpDefaults.MaxReceivedMessageSize; }
public AmqpChannelProperties Clone() { AmqpChannelProperties props = (AmqpChannelProperties) this.MemberwiseClone(); if (this.defaultMessageProperties != null) { props.defaultMessageProperties = this.defaultMessageProperties.Clone(); } if (this.amqpTransportSecurity != null) { props.amqpTransportSecurity = this.amqpTransportSecurity.Clone(); } if (this.amqpCredential != null) { this.amqpCredential = this.amqpCredential.Clone(); } return props; }