SecretJsonSerializationExtensions
Namespace: Meshmakers.Octo.Communication.Contracts.Serialization
Registers the RtSecretValue converters (AB#5528) on serializer configurations.
public static class SecretJsonSerializationExtensions
Inheritance Object → SecretJsonSerializationExtensions
Methods
AddOctoSecretConverters(JsonSerializerOptions)
Adds RtSecretValueJsonConverter unless it is already registered.
public static JsonSerializerOptions AddOctoSecretConverters(JsonSerializerOptions options)
Parameters
options JsonSerializerOptions
Mutable serializer options
Returns
JsonSerializerOptions
The same options
AddOctoSecretConverters(JsonSerializerSettings)
Adds RtSecretValueNewtonsoftJsonConverter unless it is already registered.
public static JsonSerializerSettings AddOctoSecretConverters(JsonSerializerSettings settings)
Parameters
settings JsonSerializerSettings
Serializer settings
Returns
JsonSerializerSettings
The same settings