AsyncParams.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 / infocard / Service / managed / Microsoft / InfoCards / AsyncParams.cs / 1 / AsyncParams.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
namespace Microsoft.InfoCards
{ 
    using Microsoft.Win32.SafeHandles;
 
    // 
    // Summary:
    // This class is meant as the base of any classes used to pass parameters to Async RPC operations. 
    //
    internal abstract class AsyncParams
    {
 
        //
        // All async rpc ops have an RpcAsyncResult instance. 
        // 
        RpcAsyncResult  m_asyncResult;
 
        //
        // Summary:
        // Construct a new AsyncParam instance.
        // 
        // Parameters:
        // request     - The request associated with this Async op. 
        // opType      - The type of operation this AsyncParams instance is associated with. 
        // externEvent - A native event to be signalled when the operation is complete.
        // 
        protected AsyncParams( ClientRequest request, string opType, SafeWaitHandle externEvent )
        {
            m_asyncResult = new RpcAsyncResult( request, opType, externEvent );
        } 

        public RpcAsyncResult AsyncResult 
        { 
            get { return m_asyncResult; }
        } 
    }
}

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