MsmqBindingBase.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqBindingBase.cs / 1 / MsmqBindingBase.cs

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel
{ 
    using System;
    using System.ServiceModel.Channels; 
    using System.Net.Security; 

    public abstract class MsmqBindingBase : Binding, IBindingRuntimePreferences 
    {
        internal MsmqBindingElementBase transport;

        protected MsmqBindingBase() 
        {}
 
        public Uri CustomDeadLetterQueue 
        {
            get { return transport.CustomDeadLetterQueue; } 
            set { transport.CustomDeadLetterQueue = value; }
        }

        public DeadLetterQueue DeadLetterQueue 
        {
            get { return transport.DeadLetterQueue; } 
            set { transport.DeadLetterQueue = value; } 
        }
 
        public bool Durable
        {
            get { return transport.Durable; }
            set { transport.Durable = value; } 
        }
 
        public bool ExactlyOnce 
        {
            get { return transport.ExactlyOnce; } 
            set { transport.ExactlyOnce = value; }
        }

        public long MaxReceivedMessageSize 
        {
            get { return transport.MaxReceivedMessageSize; } 
            set { transport.MaxReceivedMessageSize = value; } 
        }
 
        public int ReceiveRetryCount
        {
            get { return transport.ReceiveRetryCount; }
            set { transport.ReceiveRetryCount = value; } 
        }
 
        public int MaxRetryCycles 
        {
            get { return transport.MaxRetryCycles; } 
            set { transport.MaxRetryCycles = value; }
        }

        public ReceiveErrorHandling ReceiveErrorHandling 
        {
            get { return transport.ReceiveErrorHandling; } 
            set { transport.ReceiveErrorHandling = value; } 
        }
 
        public TimeSpan RetryCycleDelay
        {
            get { return transport.RetryCycleDelay; }
            set { transport.RetryCycleDelay = value; } 
        }
 
        public override string Scheme { get { return transport.Scheme; } } 

        public TimeSpan TimeToLive 
        {
            get { return transport.TimeToLive; }
            set { transport.TimeToLive = value; }
        } 

        public bool UseSourceJournal 
        { 
            get { return transport.UseSourceJournal; }
            set { transport.UseSourceJournal = value; } 
        }

        public bool UseMsmqTracing
        { 
            get { return transport.UseMsmqTracing; }
            set { transport.UseMsmqTracing = value; } 
        } 

        bool IBindingRuntimePreferences.ReceiveSynchronously 
        {
            get { return this.ExactlyOnce; }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK