Table of Contents

Class Subscriber

Namespace
Executables.Subscribers
Assembly
executables.dll

Factory methods for creating subscribers.

public static class Subscriber
Inheritance
Subscriber
Inherited Members

Methods

Create(Action)

Creates a subscriber from a parameterless action.

[Pure]
public static ISubscriber<Unit> Create(Action action)

Parameters

action Action

Action executed for each published unit value.

Returns

ISubscriber<Unit>

Subscriber that delegates handling to action.

Exceptions

ArgumentNullException

action is null.

Create<T>(Action<T>)

Creates a subscriber from an action that receives published values.

[Pure]
public static ISubscriber<T> Create<T>(Action<T> action)

Parameters

action Action<T>

Action executed for each published value.

Returns

ISubscriber<T>

Subscriber that delegates handling to action.

Type Parameters

T

Type of received event value.

Exceptions

ArgumentNullException

action is null.