ImmutableClientRuntime.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 / Dispatcher / ImmutableClientRuntime.cs / 1 / ImmutableClientRuntime.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

namespace System.ServiceModel.Dispatcher 
{
    using System; 
    using System.ServiceModel.Channels; 
    using System.ServiceModel;
    using System.Collections.Generic; 
    using System.Collections;
    using System.Reflection;
    using System.Runtime.Remoting.Messaging;
    using System.Transactions; 
    using System.ServiceModel.Transactions;
 
    using AsyncResult = System.ServiceModel.AsyncResult; 
    using System.Security;
 
    class ImmutableClientRuntime
    {
        int correlationCount;
        bool addTransactionFlowProperties; 
        IInteractiveChannelInitializer[] interactiveChannelInitializers;
        IClientOperationSelector operationSelector; 
        IChannelInitializer[] channelInitializers; 
        IClientMessageInspector[] messageInspectors;
        Dictionary operations; 
        ProxyOperationRuntime unhandled;
        bool useSynchronizationContext;
        private bool validateMustUnderstand;
 
        internal ImmutableClientRuntime(ClientRuntime behavior)
        { 
            this.channelInitializers = EmptyArray.ToArray(behavior.ChannelInitializers); 
            this.interactiveChannelInitializers = EmptyArray.ToArray(behavior.InteractiveChannelInitializers);
            this.messageInspectors = EmptyArray.ToArray(behavior.MessageInspectors); 

            this.operationSelector = behavior.OperationSelector;
            this.useSynchronizationContext = behavior.UseSynchronizationContext;
            this.validateMustUnderstand = behavior.ValidateMustUnderstand; 

            this.unhandled = new ProxyOperationRuntime(behavior.UnhandledClientOperation, this); 
 
            this.addTransactionFlowProperties = behavior.AddTransactionFlowProperties;
 
            this.operations = new Dictionary();

            for (int i=0; i(result);
            }
        }
    } 
}

// 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