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

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

namespace System.ServiceModel.Dispatcher 
{
    using System; 
    using System.Collections; 
    using System.ServiceModel.Diagnostics;
    using System.ServiceModel.Channels; 

    struct ProxyRpc
    {
        internal readonly string Action; 
        internal ServiceModelActivity Activity;
        internal readonly ServiceChannel Channel; 
        internal object[] Correlation; 
        internal readonly object[] InputParameters;
        internal readonly ProxyOperationRuntime Operation; 
        internal object[] OutputParameters;
        internal Message Request;
        internal Message Reply;
        internal object ReturnValue; 
        internal MessageVersion MessageVersion;
        internal readonly TimeoutHelper TimeoutHelper; 
 
        internal ProxyRpc(ServiceChannel channel, ProxyOperationRuntime operation, string action, object[] inputs, TimeSpan timeout)
        { 
            this.Action = action;
            this.Activity = null;
            this.Channel = channel;
            this.Correlation = EmptyArray.Allocate(operation.Parent.CorrelationCount); 
            this.InputParameters = inputs;
            this.Operation = operation; 
            this.OutputParameters = null; 
            this.Request = null;
            this.Reply = null; 
            this.ReturnValue = null;
            this.MessageVersion = channel.MessageVersion;
            this.TimeoutHelper = new TimeoutHelper(timeout);
        } 
    }
} 

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