IDataServiceStreamProvider.ResolveType Method

Returns a namespace-qualified type name that represents the type that the data service runtime must create for the media link entry that is associated with the data stream for the media resource that is being inserted.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

string ResolveType(
	string entitySetName,
	DataServiceOperationContext operationContext


Type: System.String
Fully-qualified entity set name.
Type: System.Data.Services.DataServiceOperationContext
The DataServiceOperationContext instance that is used by the data service to process the request.

Return Value

Type: System.String
A namespace-qualified type name.

This method is invoked by the data services framework when a request is received to insert into an Entity Set with an associated Entity Type hierarchy that has > 1 Entity Type and >= 1 Entity Type which is tagged as an MLE (ie. includes a stream). An implementer of this method should inspect the request headers provided by the operationContext parameter and return the namespace qualified type name which represents the type the Astoria framework should instantiate to create the MLE associated with the BLOB/MR being inserted. The string representing the MLE type name returned from this method will subsequently be passed to IUpdatable.CreateResource to create the MLE (of the specified type). NOTE: Altering properties on the operationContext parameter may corrupt the response from the data service.