Class EventStreamExtensions
Extension methods for the EventStream class.
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public static class EventStreamExtensions
Methods
| Edit this page View SourceSubscribe<TChannel>(EventStream, IActorRef)
Subscribes the specified subscriber.
Declaration
public static bool Subscribe<TChannel>(this EventStream eventStream, IActorRef subscriber)
Parameters
| Type | Name | Description |
|---|---|---|
| EventStream | eventStream | The event stream. |
| IActorRef | subscriber | The subscriber. |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| TChannel | The channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | subscriber |
Unsubscribe<TChannel>(EventStream, IActorRef)
Unsubscribes the specified subscriber.
Declaration
public static bool Unsubscribe<TChannel>(this EventStream eventStream, IActorRef subscriber)
Parameters
| Type | Name | Description |
|---|---|---|
| EventStream | eventStream | The event stream. |
| IActorRef | subscriber | The subscriber. |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| TChannel | The channel. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | subscriber |
Edit this page