diff --git a/src/libs/Inworld/Generated/Inworld.InworldClient.g.cs b/src/libs/Inworld/Generated/Inworld.InworldClient.g.cs index e94e17d..fc8b5d1 100644 --- a/src/libs/Inworld/Generated/Inworld.InworldClient.g.cs +++ b/src/libs/Inworld/Generated/Inworld.InworldClient.g.cs @@ -47,10 +47,17 @@ public sealed partial class InworldClient : global::Inworld.IInworldClient, glob /// public global::Inworld.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Inworld.SourceGenerationContext.Default); + /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Inworld.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } /// @@ -59,7 +66,7 @@ public sealed partial class InworldClient : global::Inworld.IInworldClient, glob public ModelsClient Models => new ModelsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerContextProvider = JsonSerializerContextProvider, }; /// @@ -68,7 +75,7 @@ public sealed partial class InworldClient : global::Inworld.IInworldClient, glob public SpeechToTextClient SpeechToText => new SpeechToTextClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerContextProvider = JsonSerializerContextProvider, }; /// @@ -77,7 +84,7 @@ public sealed partial class InworldClient : global::Inworld.IInworldClient, glob public TextToSpeechClient TextToSpeech => new TextToSpeechClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerContextProvider = JsonSerializerContextProvider, }; /// @@ -86,7 +93,7 @@ public sealed partial class InworldClient : global::Inworld.IInworldClient, glob public VoicesClient Voices => new VoicesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerContextProvider = JsonSerializerContextProvider, }; /// diff --git a/src/libs/Inworld/Generated/Inworld.ModelsClient.g.cs b/src/libs/Inworld/Generated/Inworld.ModelsClient.g.cs index f714d23..eb53392 100644 --- a/src/libs/Inworld/Generated/Inworld.ModelsClient.g.cs +++ b/src/libs/Inworld/Generated/Inworld.ModelsClient.g.cs @@ -34,10 +34,17 @@ public sealed partial class ModelsClient : global::Inworld.IModelsClient, global /// public global::Inworld.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Inworld.SourceGenerationContext.Default); + /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Inworld.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } /// diff --git a/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.g.cs b/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.g.cs index 4d87bdf..f06016d 100644 --- a/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.g.cs +++ b/src/libs/Inworld/Generated/Inworld.SpeechToTextClient.g.cs @@ -34,10 +34,17 @@ public sealed partial class SpeechToTextClient : global::Inworld.ISpeechToTextCl /// public global::Inworld.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Inworld.SourceGenerationContext.Default); + /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Inworld.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } /// diff --git a/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.g.cs b/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.g.cs index f3d5a87..c0759a4 100644 --- a/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.g.cs +++ b/src/libs/Inworld/Generated/Inworld.TextToSpeechClient.g.cs @@ -34,10 +34,17 @@ public sealed partial class TextToSpeechClient : global::Inworld.ITextToSpeechCl /// public global::Inworld.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Inworld.SourceGenerationContext.Default); + /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Inworld.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } /// diff --git a/src/libs/Inworld/Generated/Inworld.VoicesClient.g.cs b/src/libs/Inworld/Generated/Inworld.VoicesClient.g.cs index a31496d..bb40c14 100644 --- a/src/libs/Inworld/Generated/Inworld.VoicesClient.g.cs +++ b/src/libs/Inworld/Generated/Inworld.VoicesClient.g.cs @@ -34,10 +34,17 @@ public sealed partial class VoicesClient : global::Inworld.IVoicesClient, global /// public global::Inworld.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Inworld.SourceGenerationContext.Default); + /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Inworld.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } ///