<PackageReference Include="System.Reactive" Version="5.0.0" />

QueryServices

static class QueryServices
using System.Reactive.PlatformServices; using System.Runtime.CompilerServices; namespace System.Reactive.Linq { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] internal static class QueryServices { private static readonly IQueryServices Services = Initialize(); public static T GetQueryImpl<[System.Runtime.CompilerServices.Nullable(2)] T>(T defaultInstance) { return Services.Extend(defaultInstance); } private static IQueryServices Initialize() { return PlatformEnlightenmentProvider.Current.GetService<IQueryServices>(Array.Empty<object>()) ?? new DefaultQueryServices(); } } }