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 System.Reactive.Linq.IQueryServices Services = Initialize();
public static T GetQueryImpl<[System.Runtime.CompilerServices.Nullable(2)] T>(T defaultInstance)
{
return Services.Extend(defaultInstance);
}
private static System.Reactive.Linq.IQueryServices Initialize()
{
return PlatformEnlightenmentProvider.Current.GetService<System.Reactive.Linq.IQueryServices>(Array.Empty<object>()) ?? new System.Reactive.Linq.DefaultQueryServices();
}
}
}