Show / Hide Table of Contents

Interface IAsyncReactiveObserverDefinition

Interface representing an observer definition in a reactive processing service.

Inherited Members
IAsyncReactiveDefinedResource.IsParameterized
IAsyncReactiveDefinedResource.State
IAsyncReactiveDefinedResource.DefinitionTime
IKnownResource.Uri
IExpressible.Expression
Namespace: Reaqtor.Metadata
Assembly: Reaqtor.Metadata.Model.dll
Syntax
public interface IAsyncReactiveObserverDefinition : IAsyncReactiveDefinedResource, IAsyncReactiveResource, IKnownResource, IExpressible

Methods

ToObserver<T>()

Gets the observer defined by the definition.

Declaration
IAsyncReactiveQbserver<T> ToObserver<T>()
Returns
Type Description
IAsyncReactiveQbserver<T>

Representation of the observer defined by the definition.

Type Parameters
Name Description
T

Type of the data received by the observer.

Remarks

This method can be used in isolation from the client library. It's allowed to return an object that encapsulates the definition using an expression tree, to be used for composition and delegation to other systems. The object does not have to provide data operations, as is expected from the client library proxy objects.

ToObserver<TArgs, TResult>()

Gets the parameterized observer defined by the definition.

Declaration
Func<TArgs, IAsyncReactiveQbserver<TResult>> ToObserver<TArgs, TResult>()
Returns
Type Description
System.Func<TArgs, IAsyncReactiveQbserver<TResult>>

Representation of the parameterized observer defined by the definition.

Type Parameters
Name Description
TArgs

Type of the parameter passed to the observer.

TResult

Type of the data received by the observer.

Remarks

This method can be used in isolation from the client library. It's allowed to return an object that encapsulates the definition using an expression tree, to be used for composition and delegation to other systems. The object does not have to provide data operations, as is expected from the client library proxy objects.

In This Article
Back to top Generated by DocFX