Apache.NMS.ActiveMQ.ConnectionFactory.ConfigureConnection C# (CSharp) Method

ConfigureConnection() protected method

protected ConfigureConnection ( Connection connection ) : void
connection Connection
return void
        protected virtual void ConfigureConnection(Connection connection)
        {
            connection.AsyncClose = this.AsyncClose;
            connection.AsyncSend = this.AsyncSend;
            connection.CopyMessageOnSend = this.CopyMessageOnSend;
            connection.AlwaysSyncSend = this.AlwaysSyncSend;
            connection.DispatchAsync = this.DispatchAsync;
            connection.SendAcksAsync = this.SendAcksAsync;
            connection.AcknowledgementMode = this.acknowledgementMode;
            connection.UseCompression = this.useCompression;
            connection.RequestTimeout = this.requestTimeout;
            connection.ProducerWindowSize = this.producerWindowSize;
            connection.MessagePrioritySupported = this.messagePrioritySupported;
            connection.RedeliveryPolicy = this.redeliveryPolicy.Clone() as IRedeliveryPolicy;
            connection.PrefetchPolicy = this.prefetchPolicy.Clone() as PrefetchPolicy;
            connection.CompressionPolicy = this.compressionPolicy.Clone() as ICompressionPolicy;
            connection.ConsumerTransformer = this.consumerTransformer;
            connection.ProducerTransformer = this.producerTransformer;
        }