Definition
Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet.Formatter Inheritance: Microsoft.AspNet.OData.Formatter.Serialization.ODataResourceSetSerializerSyntax
Summary
The serializer for resource set result.Constructors
.ctor
Initializes a new instance of the RestierResourceSetSerializer class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
provider | Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerProvider | The serializer provider. |
Methods
WriteObject Override
Writes the entity collection results to the response message.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
graph | object | The entity collection results. |
type | System.Type | The type of the entities. |
messageWriter | Microsoft.OData.ODataMessageWriter | The message writer. |
writeContext | Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext | The writing context. |
WriteObjectAsync Override
Writes the entity collection results to the response message asynchronously.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
graph | object | The entity collection results. |
type | System.Type | The type of the entities. |
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.