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
actionActionAction executed for each published unit value.
Returns
- ISubscriber<Unit>
Subscriber that delegates handling to
action.
Exceptions
- ArgumentNullException
actionis 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
actionAction<T>Action executed for each published value.
Returns
- ISubscriber<T>
Subscriber that delegates handling to
action.
Type Parameters
TType of received event value.
Exceptions
- ArgumentNullException
actionis null.