- 
        Couldn't load subscription status. 
- Fork 8
Description
Describe the bug
If I create a trimmed application the SDK fails due to the use of reflection based JSON serialisation.
To reproduce
Create a new .NET project and enable trimming in the project file.
true
Integrate the LaunchDarkly API as per your sample applications, when LDClient.Init() is called the following exception will be raised.
2025-04-04 11:22:48.981 +11:00 [LaunchDarkly.Sdk] INFO: Starting LaunchDarkly Client 5.3.0.0 built with target framework net7.0
2025-04-04 11:22:49.034 +11:00 [LaunchDarkly.Sdk] INFO: Network availability is now True
Unhandled exception. System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
at LaunchDarkly.Sdk.Internal.Concurrent.AsyncUtils.WaitSafely(Func`1 taskFn, TimeSpan timeout)
at LaunchDarkly.Sdk.Client.LdClient.Start(TimeSpan maxWaitTime)
at LaunchDarkly.Sdk.Client.LdClient.Init(Configuration config, Context initialContext, TimeSpan maxWaitTime)
at Program.
Expected behavior
The LDClient.Init() method returns without throwing this exception.
Logs
See above.
SDK version
Client 5.3.0
Language version, developer tools
.NET 8.0.
OS/platform
Tested on macOS but exception is not platform specific.