Skip to content

Qbservable class

Attributes: [ExcludeFromCodeCoverage]

Defined in

Namespace: System.Reactive.Linq Assembly: System.Reactive.dll Full name: System.Reactive.Linq.Qbservable Modifiers: public static

Summary

        Provides a set of static methods for writing queries over observable sequences, allowing translation to a target query language.
        

Applies to

netstandard2.0

Properties

NameSummary
static ProviderGets the local query provider which will retarget Qbservable-based queries to the corresponding Observable-based query for in-memory execution upon subscription.

Methods

NameSummary
static AsQbservableConverts an in-memory observable sequence into an [IQbservable](# sequence with an expression tree representing the source sequence.
static AsObservableReturns the input typed as an IObservable. This operator is used to separate the part of the query that's captured as an expression...
static ToQbservableConverts an enumerable sequence to an observable sequence.
static AggregateApplies an accumulator function over an observable sequence, returning the result of the aggregation as a single element in the result sequence. For aggregation behavior with incremental...
static AllDetermines whether all elements of an observable sequence satisfy a condition.
static AmbPropagates the observable sequence that reacts first.
static AnyDetermines whether an observable sequence contains any elements.
static AppendAppend a value to an observable sequence.
static AutoConnectAutomatically connect the upstream IConnectableObservable at most once when the specified number of IObservers have subscribed to this IObservable.
static AverageComputes the average of an observable sequence of Decimal values.
static BufferProjects each element of an observable sequence into consecutive non-overlapping buffers which are produced based on element count information.
static ResetExceptionDispatchStatePropagates all messages, but if source produces an error, this updates the dispatch state of the Exception to reflect the current...
static CaseUses selector to determine which source in sources to return, choosing an empty sequence if no match is found.
static CastConverts the elements of an observable sequence to the specified type.
static CatchContinues an observable sequence that is terminated by an exception with the next observable sequence.
static ChunkifyProduces an enumerable sequence of consecutive (possibly empty) chunks of the source sequence.
static CollectProduces an enumerable sequence that returns elements collected/aggregated from the source sequence between consecutive iterations.
static CombineLatestMerges the specified observable sequences into one observable sequence by emitting a list with the latest source elements whenever any of the observable sequences produces an element.
static ConcatConcatenates the second observable sequence to the first observable sequence upon successful termination of the first.
static ContainsDetermines whether an observable sequence contains a specified element by using the default equality comparer.
static CountReturns an observable sequence containing an Int32 that represents the total number of elements in an observable sequence.
static CreateCreates an observable sequence from a specified Subscribe method implementation.
static DefaultIfEmptyReturns the elements of the specified sequence or the type parameter's default value in a singleton sequence if the sequence is empty.
static DeferReturns an observable sequence that invokes the specified factory function whenever a new observer subscribes.
static DeferAsyncReturns an observable sequence that starts the specified cancellable asynchronous factory function whenever a new observer subscribes. The CancellationToken passed to the asynchronous...
static DelayTime shifts the observable sequence to start propagating notifications at the specified absolute time. The relative time intervals between the values are preserved.
static DelaySubscriptionTime shifts the observable sequence by delaying the subscription to the specified absolute time.
static DematerializeDematerializes the explicit notification values of an observable sequence as implicit notifications.
static DistinctReturns an observable sequence that contains only distinct elements.
static DistinctUntilChangedReturns an observable sequence that contains only distinct contiguous elements.
static DoInvokes the observer's methods for each message in the source sequence. This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run...
static DoWhileRepeats the given source as long as the specified condition holds, where the condition is evaluated after each repeated source completed.
static ElementAtReturns the element at a specified index in a sequence.
static ElementAtOrDefaultReturns the element at a specified index in a sequence or a default value if the index is out of range.
static EmptyReturns an empty observable sequence.
static FinallyInvokes a specified action after the source observable sequence terminates gracefully or exceptionally.
static FirstAsyncReturns the first element of an observable sequence.
static FirstOrDefaultAsyncReturns the first element of an observable sequence, or a default value if no such element exists.
static ForConcatenates the observable sequences obtained by running the resultSelector for each element in the given enumerable source.
static FromAsyncConverts an asynchronous action into an observable sequence. Each subscription to the resulting sequence causes the action to be started.
static FromEventConverts an Action-based .NET event to an observable sequence. Each event invocation is surfaced through an OnNext message in the resulting sequence. For conversion of events conforming...
static FromEventPatternConverts a .NET event, conforming to the standard .NET event pattern based on EventHandler, to an observable sequence. Each event...
static GenerateGenerates an observable sequence by running a state-driven loop producing the sequence's elements.
static GroupByGroups the elements of an observable sequence according to a specified key selector function.
static GroupByUntilGroups the elements of an observable sequence according to a specified key selector function. A duration selector function is used to control the lifetime of groups. When a group...
static GroupJoinCorrelates the elements of two sequences based on overlapping durations, and groups the results.
static IfIf the specified condition evaluates true, select the thenSource sequence. Otherwise, return an empty sequence.
static IgnoreElementsIgnores all elements in an observable sequence leaving only the termination messages.
static IntervalReturns an observable sequence that produces a value after each period.
static IsEmptyDetermines whether an observable sequence is empty.
static JoinCorrelates the elements of two sequences based on overlapping durations.
static LastAsyncReturns the last element of an observable sequence.
static LastOrDefaultAsyncReturns the last element of an observable sequence, or a default value if no such element exists.
static LatestReturns an enumerable sequence whose enumeration returns the latest observed element in the source observable sequence. Enumerators on the resulting sequence will never produce the same...
static LongCountReturns an observable sequence containing an Int64 that represents the total number of elements in an observable sequence.
static MaterializeMaterializes the implicit notifications of an observable sequence as explicit notification values.
static MaxReturns the maximum value in an observable sequence of Decimal values.
static MaxByReturns the elements in an observable sequence with the maximum key value.
static MergeMerges elements from two observable sequences into a single observable sequence.
static MinReturns the minimum value in an observable sequence of Decimal values.
static MinByReturns the elements in an observable sequence with the minimum key value.
static MostRecentReturns an enumerable sequence whose enumeration returns the most recently observed element in the source observable sequence, using the specified initial value in case no element has been sampled...
static MulticastMulticasts the source sequence notifications through an instantiated subject into all uses of the sequence within a selector function. Each subscription to the resulting sequence causes...
static NeverReturns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins).
static NextReturns an enumerable sequence whose enumeration blocks until the next element in the source observable sequence becomes available. Enumerators on the resulting sequence will block until...
static ObserveOnWraps the source sequence in order to run its observer callbacks on the specified synchronization context.
static OfTypeFilters the elements of an observable sequence based on the specified type.
static OnErrorResumeNextConcatenates the second observable sequence to the first observable sequence upon successful or exceptional termination of the first.
static PrependPrepend a value to an observable sequence.
static PublishReturns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence. This operator is a...
static PublishLastReturns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence containing only the last...
static RangeGenerates an observable sequence of integral numbers within a specified range.
static RefCountReturns an observable sequence that stays connected to the source as long as there is at least one subscription to the observable sequence.
static RepeatGenerates an observable sequence that repeats the given element infinitely.
static RepeatWhenRepeatedly resubscribes to the source observable after a normal completion and when the observable returned by a handler produces an arbitrary item.
static ReplayReturns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence replaying all...
static RetryRepeats the source observable sequence until it successfully terminates.
static RetryWhenRetries (resubscribes to) the source observable after a failure and when the observable returned by a handler produces an arbitrary item.
static ReturnReturns an observable sequence that contains a single element.
static SampleSamples the observable sequence at each interval. Upon each sampling tick, the latest element (if any) in the source sequence during the last sampling interval is sent to the resulting...
static ScanApplies an accumulator function over an observable sequence and returns each intermediate result. For aggregation behavior with no intermediate results, see...
static SelectProjects each element of an observable sequence into a new form.
static SelectManyProjects each element of an observable sequence to an enumerable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the...
static SequenceEqualDetermines whether two sequences are equal by comparing the elements pairwise.
static SingleAsyncReturns the only element of an observable sequence, and reports an exception if there is not exactly one element in the observable sequence.
static SingleOrDefaultAsyncReturns the only element of an observable sequence, or a default value if the observable sequence is empty; this method reports an exception if there is more than one element in the observable...
static SkipBypasses a specified number of elements in an observable sequence and then returns the remaining elements.
static SkipLastBypasses a specified number of elements at the end of an observable sequence.
static SkipUntilSkips elements from the observable source sequence until the specified start time.
static SkipWhileBypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements.
static StartInvokes the action asynchronously, surfacing the result through an observable sequence.
static StartAsyncInvokes the asynchronous action, surfacing the result through an observable sequence.
static StartWithPrepends a sequence of values to an observable sequence.
static SubscribeOnWraps the source sequence in order to run its subscription and unsubscription logic on the specified synchronization context. This operation is not commonly used; see the remarks section...
static SumComputes the sum of a sequence of Decimal values.
static SwitchTransforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. Each time a new inner...
static SynchronizeSynchronizes the observable sequence such that observer notifications cannot be delivered concurrently. This overload is useful to "fix" an observable sequence that exhibits concurrent...
static TakeReturns a specified number of contiguous elements from the start of an observable sequence.
static TakeLastReturns a specified number of contiguous elements from the end of an observable sequence.
static TakeLastBufferReturns a list with the specified number of contiguous elements from the end of an observable sequence.
static TakeUntilRelays elements from the source observable sequence until the provided cancellationToken is cancelled. Completes immediately if the provided cancellationToken is already cancelled upon...
static TakeWhileReturns elements from an observable sequence as long as a specified condition is true.
static ThrottleIgnores elements from an observable sequence which are followed by another element within a specified relative time duration.
static ThrowReturns an observable sequence that terminates with an exception.
static TimeIntervalRecords the time interval between consecutive elements in an observable sequence.
static TimeoutApplies a timeout policy to the observable sequence based on an absolute time. If the sequence doesn't terminate before the specified absolute due time, a TimeoutException is propagated...
static TimerReturns an observable sequence that produces a single value at the specified absolute due time.
static TimestampTimestamps each element in an observable sequence using the local system clock.
static ToArrayCreates an array from an observable sequence.
static ToDictionaryCreates a dictionary from an observable sequence according to a specified key selector function.
static ToQueryableConverts an observable sequence to an enumerable sequence.
static ToListCreates a list from an observable sequence.
static ToLookupCreates a lookup from an observable sequence according to a specified key selector function.
static ToObservableConverts an enumerable sequence to an observable sequence.
static UsingConstructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime.
static WhereFilters the elements of an observable sequence based on a predicate.
static WhileRepeats the given source as long as the specified condition holds, where the condition is evaluated before each repeated source is subscribed to.
static WindowProjects each element of an observable sequence into consecutive non-overlapping windows which are produced based on element count information.
static WithLatestFromMerges two observable sequences into one observable sequence by combining each element from the first source with the latest element from the second source, if any. Starting from Rx.NET 4.0, this...
static ZipMerges the specified observable sequences into one observable sequence by emitting a list with the elements of the observable sequences at corresponding indexes.
static ToAsyncConverts the function into an asynchronous action. Each invocation of the resulting asynchronous action causes an invocation of the original synchronous action on the specified scheduler.
static FromAsyncPatternConverts a Begin/End invoke function pair into an asynchronous function.
static AndCreates a pattern that matches when both observable sequences have an available element.
static ThenMatches when the observable sequence has an available element and projects the element by invoking the selector function.
static WhenJoins together the results from several patterns.
Inherited members