DataGateCredentialConverter class

Provides a converter for DataGate credentials.

Namespace: ASNA.DataGate.Providers.Serialization Assembly: ASNA.QSys.DataGate.Client.dll

Inheritance: Object –> JsonConverter –> JsonConverter<IDataGateCredential>

Methods

Signature Description
Read(Utf8JsonReader&, Type, JsonSerializerOptions) Reads the DataGate credentials from a Utf8JsonReader.
Write(Utf8JsonWriter, IDataGateCredential, JsonSerializerOptions) Writes the DataGate credentials to a secure string.

IDataGateCredential Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Reads the DataGate credentials from a Utf8JsonReader.

IDataGateCredential Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

Type Parameter name Description
Utf8JsonReader& reader The Utf8JsonReader from which the credentials are deserialized.
Type typeToConvert The type of the object to convert.
JsonSerializerOptions options The options for reading the credentials.

Returns

Type Description
IDataGateCredential The deserialized DataGate credentials.

void Write(Utf8JsonWriter writer, IDataGateCredential value, JsonSerializerOptions options)

Writes the DataGate credentials to a secure string.

void Write(Utf8JsonWriter writer, IDataGateCredential value, JsonSerializerOptions options)

Parameters

Type Parameter name Description
Utf8JsonWriter writer The XmlWriter stream to which the credentials are serialized.
IDataGateCredential value The DataGate credentials to write.
JsonSerializerOptions options The options for writing the credentials.