Definition
Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet.Formatter Inheritance: Microsoft.AspNet.OData.Formatter.Serialization.ODataRawValueSerializerSyntax
Summary
The serializer for raw result.Constructors
.ctor
Initializes a new instance of the RestierRawSerializer class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
payloadValueConverter | Microsoft.OData.ODataPayloadValueConverter | The ODataPayloadValueConverter to use. |
Methods
WriteObject Override
Writes the entity result to the response message.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
graph | object | The entity result to write. |
type | System.Type | The type of the entity. |
messageWriter | Microsoft.OData.ODataMessageWriter | The message writer. |
writeContext | Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext | The writing context. |
WriteObjectAsync Override
Writes the entity result to the response message asynchronously.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
graph | object | The entity result to write. |
type | System.Type | The type of the entity. |
messageWriter | Microsoft.OData.ODataMessageWriter | The message writer. |
writeContext | Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext | The writing context. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous operation.