Zum Hauptinhalt springen

PipelineSecretMarkerJsonConverter

Namespace: Meshmakers.Octo.Sdk.Common.EtlDataPipeline

The pipeline's converter (AB#5538). It is registered in the options (SystemTextJsonOptions.CreateDefault()), so it takes precedence over the engine's type-level converter for every value written into or read from a data context.

public sealed class PipelineSecretMarkerJsonConverter : JsonConverter<RtSecretValue>

Inheritance Object → JsonConverter → JsonConverter<RtSecretValue> → PipelineSecretMarkerJsonConverter

Remarks:

Writing: with a registered classifier (PipelineSecretValues.SetReadStateClassifier(Func<RtSecretValue, SecretReadInfo>)) the marker reflects the read state: {"isSet": true|false}, or {"isSet": false, "keyMissing": true} for a stored value whose key id is not in the key ring. Without a classifier it writes the engine marker (). Never the plaintext, never the envelope.

Reading is the engine's strict wire format (): any marker, including one with keyMissing / setAt, means "unchanged".

Properties​

HandleNull​

public bool HandleNull { get; }

Property Value​

Boolean

Type​

public Type Type { get; }

Property Value​

Type

Constructors​

PipelineSecretMarkerJsonConverter()​

public PipelineSecretMarkerJsonConverter()

Methods​

Read(out Utf8JsonReader, Type, JsonSerializerOptions)​

public RtSecretValue Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters​

reader Utf8JsonReader

typeToConvert Type

options JsonSerializerOptions

Returns​

RtSecretValue

Write(Utf8JsonWriter, RtSecretValue, JsonSerializerOptions)​

public void Write(Utf8JsonWriter writer, RtSecretValue value, JsonSerializerOptions options)

Parameters​

writer Utf8JsonWriter

value RtSecretValue

options JsonSerializerOptions