Definition
Assembly: Microsoft.Restier.AspNetCore.dll Namespace: Microsoft.Restier.AspNetCore.Formatter Inheritance: Microsoft.AspNet.OData.Formatter.Serialization.DefaultODataSerializerProviderSyntax
Summary
The default serializer provider.Constructors
.ctor
Initializes a new instance of the DefaultRestierSerializerProvider class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
rootContainer | System.IServiceProvider | The container to get the service. |
payloadValueConverter | Microsoft.OData.ODataPayloadValueConverter | The OData payload value converter to use. |
.ctor
Initializes a new instance of the DefaultRestierSerializerProvider class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
rootContainer | System.IServiceProvider | The container to get the service. |
Methods
GetEdmTypeSerializer Override
Gets the serializer for the given EDM type reference.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
edmType | Microsoft.OData.Edm.IEdmTypeReference | The EDM type reference involved in the serializer. |
Returns
Type:Microsoft.AspNet.OData.Formatter.Serialization.ODataEdmTypeSerializer
The serializer instance.
GetODataPayloadSerializer Override
Gets the serializer for the given result type.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
type | System.Type | The type of result to serialize. |
request | Microsoft.AspNetCore.Http.HttpRequest | The HTTP request. |
Returns
Type:Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializer
The serializer instance.