ProcessRequestArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Server / System / Data / Services / ProcessRequestArgs.cs / 1 / ProcessRequestArgs.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Provides a class to provide information about the request
//      that is going to be processed. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services
{ 
    using System;
 
    /// Use this class to look at the request uri and doing some custom validation. 
    public sealed class ProcessRequestArgs
    { 
        #region Private fields.

        /// The uri for this request.
        private readonly Uri requestUri; 

        /// True if this request is a operation specified within a batch request, otherwise false. 
        private readonly bool isBatchOperation; 

        #endregion Private fields. 

        #region Constructors.

        /// Initalizes a new  instance. 
        /// The uri for this request.
        /// True if this request is a operation specified within a batch request, otherwise false. 
        internal ProcessRequestArgs(Uri requestUri, bool isBatchOperation) 
        {
            System.Diagnostics.Debug.Assert(requestUri != null, "requestUri != null"); 

            this.requestUri = requestUri;
            this.isBatchOperation = isBatchOperation;
        } 

        #endregion Constructors. 
 
        #region Public Properties.
 
        /// The uri for this request that is about to get processed.
        public Uri RequestUri
        {
            get { return this.requestUri; } 
        }
 
        /// Returns true if this request is a operation specified within a batch request, otherwise returns false. 
        public bool IsBatchOperation
        { 
            get { return this.isBatchOperation; }
        }

        #endregion Public Properties. 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Provides a class to provide information about the request
//      that is going to be processed. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services
{ 
    using System;
 
    /// Use this class to look at the request uri and doing some custom validation. 
    public sealed class ProcessRequestArgs
    { 
        #region Private fields.

        /// The uri for this request.
        private readonly Uri requestUri; 

        /// True if this request is a operation specified within a batch request, otherwise false. 
        private readonly bool isBatchOperation; 

        #endregion Private fields. 

        #region Constructors.

        /// Initalizes a new  instance. 
        /// The uri for this request.
        /// True if this request is a operation specified within a batch request, otherwise false. 
        internal ProcessRequestArgs(Uri requestUri, bool isBatchOperation) 
        {
            System.Diagnostics.Debug.Assert(requestUri != null, "requestUri != null"); 

            this.requestUri = requestUri;
            this.isBatchOperation = isBatchOperation;
        } 

        #endregion Constructors. 
 
        #region Public Properties.
 
        /// The uri for this request that is about to get processed.
        public Uri RequestUri
        {
            get { return this.requestUri; } 
        }
 
        /// Returns true if this request is a operation specified within a batch request, otherwise returns false. 
        public bool IsBatchOperation
        { 
            get { return this.isBatchOperation; }
        }

        #endregion Public Properties. 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

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