Show / Hide Table of Contents

Class ContextSwitchOperator<TParam, TResult>

Base class for operators that need a context switch between some arbitrary thread and a logical scheduler.

Inheritance
System.Object
Operator<TParam, TResult>
VersionedOperator<TParam, TResult>
StatefulOperator<TParam, TResult>
ContextSwitchOperator<TParam, TResult>
Implements
ISubscription
IStatefulOperator
IOperator
System.IDisposable
IVersioned
System.IObserver<TResult>
Inherited Members
StatefulOperator<TParam, TResult>.LoadState(IOperatorStateReader, Version)
StatefulOperator<TParam, TResult>.LoadStateCore(IOperatorStateReader)
StatefulOperator<TParam, TResult>.LoadStateCore(IOperatorStateReader, Version)
StatefulOperator<TParam, TResult>.SaveState(IOperatorStateWriter, Version)
StatefulOperator<TParam, TResult>.SaveStateCore(IOperatorStateWriter)
StatefulOperator<TParam, TResult>.SaveStateCore(IOperatorStateWriter, Version)
StatefulOperator<TParam, TResult>.OnStateSaved()
StatefulOperator<TParam, TResult>.OnDispose()
StatefulOperator<TParam, TResult>.StateChanged
VersionedOperator<TParam, TResult>.Name
VersionedOperator<TParam, TResult>.Version
Operator<TParam, TResult>.Subscribe()
Operator<TParam, TResult>.SetContext(IOperatorContext)
Operator<TParam, TResult>.Start()
Operator<TParam, TResult>.Dispose()
Operator<TParam, TResult>.Dispose(Boolean)
Operator<TParam, TResult>.Accept(ISubscriptionVisitor)
Operator<TParam, TResult>.OnSubscribe()
Operator<TParam, TResult>.OnStart()
Operator<TParam, TResult>.OnDispose()
Operator<TParam, TResult>.Inputs
Operator<TParam, TResult>.Params
Operator<TParam, TResult>.Output
Operator<TParam, TResult>.IsDisposed
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public abstract class ContextSwitchOperator<TParam, TResult> : StatefulOperator<TParam, TResult>, ISubscription, IStatefulOperator, IOperator, IDisposable, IVersioned, IObserver<TResult>
Type Parameters
Name Description
TParam

Type of parameter.

TResult

Type of elements produced by the context switch operator.

Constructors

ContextSwitchOperator(TParam, IObserver<TResult>)

Initializes a new instance of the ContextSwitchOperator<TParam, TResult> class.

Declaration
protected ContextSwitchOperator(TParam parent, IObserver<TResult> observer)
Parameters
Type Name Description
TParam parent

Parameters passed to the context switch operator.

System.IObserver<TResult> observer

Observer to publish elements into.

Properties

MonitorableQueue

Gets the queue maintained by the context switch operator.

Declaration
public IMonitorableQueue<TResult> MonitorableQueue { get; }
Property Value
Type Description
IMonitorableQueue<TResult>

Methods

OnCompleted()

Publishes a completion notification into the context switch operator.

Declaration
public virtual void OnCompleted()

OnError(Exception)

Publishes an error into the context switch operator.

Declaration
public virtual void OnError(Exception error)
Parameters
Type Name Description
System.Exception error

Error to publish.

OnNext(TResult)

Publishes a value into the context switch operator.

Declaration
public virtual void OnNext(TResult value)
Parameters
Type Name Description
TResult value

Value to publish.

OnSubscribe()

Subscribes to the operator's input.

Declaration
protected override IEnumerable<ISubscription> OnSubscribe()
Returns
Type Description
System.Collections.Generic.IEnumerable<ISubscription>

Sequence of operator inputs.

Overrides
Reaqtive.Operator<TParam, TResult>.OnSubscribe()

Implements

ISubscription
IStatefulOperator
IOperator
System.IDisposable
IVersioned
System.IObserver<>
In This Article
Back to top Generated by DocFX