Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDataServiceConfiguration Interface

The IDataServiceConfiguration is used by WCF Data Services to set up the behavior of the service, including rights on entity sets and service operations, limits on the allowed requests, registering types not discoverable by default, and the default verbosity on error handling.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)
public interface IDataServiceConfiguration

The IDataServiceConfiguration type exposes the following members.

  NameDescription
Public propertyDisableValidationOnMetadataWriteGets or sets whether the data model is validated before it is written as a response to a request to the metadata endpoint.
Public propertyMaxBatchCountGets the maximum number of requests that can be handled in a batch.
Public propertyMaxChangesetCountGets the maximum number of change sets that can be handled in a batch.
Public propertyMaxExpandCountGets or sets the maximum number of segments that can be expanded by the $expand query option for all requests to the data service.
Public propertyMaxExpandDepthGets or sets a maximum number of segments supported in a single $expand path for all requests to the data service.
Public propertyMaxObjectCountOnInsertGets or sets the maximum number of objects that can be inserted in a single request.
Public propertyMaxResultsPerCollectionGets the maximum number of results per collection.
Public propertyUseVerboseErrorsGets or sets whether verbose errors are used by default for all responses from the data service.
Top
  NameDescription
Public methodRegisterKnownTypeRegisters a resource type for use by the data service.
Public methodSetEntitySetAccessRuleSets the access rules for the specified entity set.
Public methodSetServiceOperationAccessRuleSets the access rules for the specified service operation.
Top

This type is used by DataService<T> classes to configure the service by implementing a static method named InitializeService, returning void, and taking a single argument of type IDataServiceConfiguration. The configuration object may only be used during the call to service initialization.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.