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();
}
}
}