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
- DynamicMethod.cs
- TextWriter.cs
- OrderByQueryOptionExpression.cs
- ActivityExecutionContext.cs
- JsonCollectionDataContract.cs
- RuntimeConfig.cs
- ControlEvent.cs
- ScriptManagerProxy.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- WebPartTransformerAttribute.cs
- EditorZoneDesigner.cs
- SourceChangedEventArgs.cs
- FixedNode.cs
- ReadOnlyDataSource.cs
- TableLayoutColumnStyleCollection.cs
- _ServiceNameStore.cs
- XmlWhitespace.cs
- ControlTemplate.cs
- Activator.cs
- XmlSchemaAttributeGroup.cs
- SR.cs
- DbParameterCollectionHelper.cs
- CodeSubDirectoriesCollection.cs
- DesignerCalendarAdapter.cs
- TaskFileService.cs
- PowerStatus.cs
- panel.cs
- StringValidator.cs
- MediaSystem.cs
- DataBoundControlAdapter.cs
- WrapperEqualityComparer.cs
- MenuItemCollection.cs
- DataGridViewControlCollection.cs
- HtmlWindowCollection.cs
- EventPrivateKey.cs
- SystemWebSectionGroup.cs
- ListViewItem.cs
- Message.cs
- RayMeshGeometry3DHitTestResult.cs
- bidPrivateBase.cs
- Encoder.cs
- ToolStripPanel.cs
- FixedSOMPageConstructor.cs
- PrintController.cs
- ActiveXContainer.cs
- ByteAnimation.cs
- BufferBuilder.cs
- EntityDescriptor.cs
- WebPartDisplayModeEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- PersonalizationStateQuery.cs
- MessageSmuggler.cs
- ElementUtil.cs
- HtmlImageAdapter.cs
- DataBindingHandlerAttribute.cs
- OSFeature.cs
- XmlSchemaGroupRef.cs
- TransformValueSerializer.cs
- ConfigurationManagerInternal.cs
- HashCodeCombiner.cs
- GrammarBuilderBase.cs
- SocketConnection.cs
- ObjectSecurity.cs
- ImmutableObjectAttribute.cs
- XslAst.cs
- DataBinder.cs
- Pair.cs
- ArrayConverter.cs
- ChangePassword.cs
- StrongNamePublicKeyBlob.cs
- ExpressionBindingCollection.cs
- CultureTable.cs
- RelationshipConverter.cs
- DocComment.cs
- SelectionProcessor.cs
- DbModificationClause.cs
- AuthenticationConfig.cs
- RubberbandSelector.cs
- TextEditorSelection.cs
- CommandEventArgs.cs
- TextEffect.cs
- ICspAsymmetricAlgorithm.cs
- MetafileHeaderEmf.cs
- SHA384.cs
- HyperLinkStyle.cs
- HttpApplicationStateWrapper.cs
- XmlSerializationGeneratedCode.cs
- CommonEndpointBehaviorElement.cs
- WriterOutput.cs
- propertyentry.cs
- TextRangeAdaptor.cs
- ThicknessAnimationUsingKeyFrames.cs
- ConfigurationSectionGroup.cs
- ContentValidator.cs
- sqlnorm.cs
- WorkflowQueuingService.cs
- ParseHttpDate.cs
- EntityModelBuildProvider.cs
- SqlNodeTypeOperators.cs
- TaskHelper.cs