// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. #pragma warning disable 1591 namespace System.Reactive.Linq { public static partial class Qbservable { private static IQbservableProvider s_provider; /// /// Gets the local query provider which will retarget Qbservable-based queries to the corresponding Observable-based query for in-memory execution upon subscription. /// public static IQbservableProvider Provider { get { if (s_provider == null) { s_provider = new ObservableQueryProvider(); } return s_provider; } } /// /// Converts an in-memory observable sequence into an sequence with an expression tree representing the source sequence. /// /// The type of the elements in the source sequence. /// Source sequence. /// sequence representing the given observable source sequence. /// is null. public static IQbservable AsQbservable(this IObservable source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } return new ObservableQuery(source); } } } #pragma warning restore 1591