// 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. using System.Reactive.Concurrency; using System.Reactive.Disposables; using System.Threading; namespace System.Reactive.Linq { #if !NO_PERF using ObservableImpl; #endif internal partial class QueryLanguage { #region + ObserveOn + public virtual IObservable ObserveOn(IObservable source, IScheduler scheduler) { return Synchronization.ObserveOn(source, scheduler); } #if !NO_SYNCCTX public virtual IObservable ObserveOn(IObservable source, SynchronizationContext context) { return Synchronization.ObserveOn(source, context); } #endif #endregion #region + SubscribeOn + public virtual IObservable SubscribeOn(IObservable source, IScheduler scheduler) { return Synchronization.SubscribeOn(source, scheduler); } #if !NO_SYNCCTX public virtual IObservable SubscribeOn(IObservable source, SynchronizationContext context) { return Synchronization.SubscribeOn(source, context); } #endif #endregion #region + Synchronize + public virtual IObservable Synchronize(IObservable source) { return Synchronization.Synchronize(source); } public virtual IObservable Synchronize(IObservable source, object gate) { return Synchronization.Synchronize(source, gate); } #endregion } }