Skip to main content

Definition

Assembly: CloudNimble.McpEssentials.Cosmos.dll Namespace: CloudNimble.McpEssentials.Cosmos.Tasks Inheritance: Microsoft.Azure.Cosmos.CosmosSerializer

Syntax

Summary

Cosmos serializer that uses source-generated CosmosMcpTasksJsonContext with a reflection fallback for types the context does not list.

Constructors

.ctor

Initializes a new instance using CosmosSystemTextJsonSerializer.CreateOptions.

Syntax

Methods

CreateOptions

Builds the JSON options passed to Cosmos and used by unit tests.

Syntax

Returns

Type: System.Text.Json.JsonSerializerOptions Camel-case options with the source-generated context first.

FromStream Override

Syntax

Parameters

Returns

Type: T

ToStream Override

Syntax

Parameters

Returns

Type: System.IO.Stream