DataServiceBehavior.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / DataServiceBehavior.cs / 1305376 / DataServiceBehavior.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
// Holds configuration of service behavior.
//  
// 
// @owner [....]
//--------------------------------------------------------------------- 

namespace System.Data.Services
{
    using System.Data.Services.Common; 

    /// Use this class to add settings that define service behavior. 
    public sealed class DataServiceBehavior 
    {
        ///  
        /// Initializes a new .
        /// 
        internal DataServiceBehavior()
        { 
            this.InvokeInterceptorsOnLinkDelete = true;
            this.AcceptCountRequests = true; 
            this.AcceptProjectionRequests = true; 
            this.MaxProtocolVersion = DataServiceProtocolVersion.V1;
        } 

        /// 
        /// Whether to invoke change interceptor on link delete.
        ///  
        public bool InvokeInterceptorsOnLinkDelete
        { 
            get; 
            set;
        } 

        /// 
        /// Whether $count and $inlinecount requests should be accepted
        ///  
        public bool AcceptCountRequests
        { 
            get; 
            set;
        } 

        /// 
        /// Whether projection requests should be accepted
        ///  
        public bool AcceptProjectionRequests
        { 
            get; 
            set;
        } 

        /// 
        /// Max version of the response sent by server
        ///  
        public DataServiceProtocolVersion MaxProtocolVersion
        { 
            get; 
            set;
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
// Holds configuration of service behavior.
//  
// 
// @owner [....]
//--------------------------------------------------------------------- 

namespace System.Data.Services
{
    using System.Data.Services.Common; 

    /// Use this class to add settings that define service behavior. 
    public sealed class DataServiceBehavior 
    {
        ///  
        /// Initializes a new .
        /// 
        internal DataServiceBehavior()
        { 
            this.InvokeInterceptorsOnLinkDelete = true;
            this.AcceptCountRequests = true; 
            this.AcceptProjectionRequests = true; 
            this.MaxProtocolVersion = DataServiceProtocolVersion.V1;
        } 

        /// 
        /// Whether to invoke change interceptor on link delete.
        ///  
        public bool InvokeInterceptorsOnLinkDelete
        { 
            get; 
            set;
        } 

        /// 
        /// Whether $count and $inlinecount requests should be accepted
        ///  
        public bool AcceptCountRequests
        { 
            get; 
            set;
        } 

        /// 
        /// Whether projection requests should be accepted
        ///  
        public bool AcceptProjectionRequests
        { 
            get; 
            set;
        } 

        /// 
        /// Max version of the response sent by server
        ///  
        public DataServiceProtocolVersion MaxProtocolVersion
        { 
            get; 
            set;
        } 
    }
}

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