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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompensableActivity.cs
- Size3DValueSerializer.cs
- ReflectPropertyDescriptor.cs
- ReachUIElementCollectionSerializerAsync.cs
- KnownTypesProvider.cs
- UseLicense.cs
- ObjectListGeneralPage.cs
- InfoCardRSACryptoProvider.cs
- WindowsGraphicsWrapper.cs
- ModifiableIteratorCollection.cs
- MTConfigUtil.cs
- HtmlMobileTextWriter.cs
- XmlSchemaExternal.cs
- SvcFileManager.cs
- VerticalAlignConverter.cs
- DateTimeSerializationSection.cs
- BrushValueSerializer.cs
- ClientSession.cs
- KeyEvent.cs
- FastEncoder.cs
- EdgeProfileValidation.cs
- HttpRequestWrapper.cs
- Interlocked.cs
- InfoCardAsymmetricCrypto.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- shaperfactoryquerycacheentry.cs
- SiteMapSection.cs
- SerialErrors.cs
- RequestBringIntoViewEventArgs.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XD.cs
- LocationSectionRecord.cs
- FilePrompt.cs
- PropertyBuilder.cs
- PageVisual.cs
- JoinTreeNode.cs
- TextPatternIdentifiers.cs
- FloaterParaClient.cs
- EntryPointNotFoundException.cs
- MediaContext.cs
- XmlParser.cs
- TypeToken.cs
- Point3DValueSerializer.cs
- ScriptingAuthenticationServiceSection.cs
- ASCIIEncoding.cs
- CreateUserErrorEventArgs.cs
- WebBrowserEvent.cs
- DataTableMappingCollection.cs
- MetadataCacheItem.cs
- StreamAsIStream.cs
- ColumnMap.cs
- AppSettingsExpressionBuilder.cs
- ResourceSet.cs
- Quaternion.cs
- SqlLiftIndependentRowExpressions.cs
- AssociationTypeEmitter.cs
- UriSectionReader.cs
- AnnotationComponentManager.cs
- PaintValueEventArgs.cs
- DataControlFieldCell.cs
- ToolStripSeparator.cs
- XmlSchema.cs
- ParseChildrenAsPropertiesAttribute.cs
- CellParaClient.cs
- ComponentDispatcherThread.cs
- PeerNameRecord.cs
- FontFamilyConverter.cs
- DiagnosticTraceSource.cs
- MouseCaptureWithinProperty.cs
- UrlAuthorizationModule.cs
- ReferentialConstraint.cs
- ILGenerator.cs
- DrawingAttributes.cs
- DescriptionAttribute.cs
- Thickness.cs
- ObjectDisposedException.cs
- FolderLevelBuildProvider.cs
- WindowsPen.cs
- Int16AnimationBase.cs
- SecurityUtils.cs
- XmlSchemaComplexContent.cs
- SqlCharStream.cs
- DesignerUtils.cs
- UpdatePanel.cs
- XmlAutoDetectWriter.cs
- EventInfo.cs
- DesignerActionUIService.cs
- SocketPermission.cs
- RC2.cs
- DocumentPageHost.cs
- AssignDesigner.xaml.cs
- DataControlExtensions.cs
- ModelVisual3D.cs
- ByteBufferPool.cs
- InvalidProgramException.cs
- RNGCryptoServiceProvider.cs
- __Filters.cs
- WindowsIdentity.cs
- TextRangeSerialization.cs
- TriggerAction.cs