Class Subscription<TSubscriber, TClassifier>
Represents a Subscription to the EventBus.
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public class Subscription<TSubscriber, TClassifier>
Type Parameters
Name | Description |
---|---|
TSubscriber | The type of the subscriber. |
TClassifier | The type of the classifier. |
Constructors
| Improve this Doc View SourceSubscription(TSubscriber)
Initializes a new instance of the Subscription<TSubscriber, TClassifier> class.
Declaration
public Subscription(TSubscriber subscriber)
Parameters
Type | Name | Description |
---|---|---|
TSubscriber | subscriber | The subscriber. |
Subscription(TSubscriber, IEnumerable<TClassifier>)
Initializes a new instance of the Subscription<TSubscriber, TClassifier> class.
Declaration
public Subscription(TSubscriber subscriber, IEnumerable<TClassifier> unsubscriptions)
Parameters
Type | Name | Description |
---|---|---|
TSubscriber | subscriber | The subscriber. |
IEnumerable<TClassifier> | unsubscriptions | The unsubscriptions. |
Properties
| Improve this Doc View SourceSubscriber
Gets the subscriber attached to this subscription.
Declaration
public TSubscriber Subscriber { get; }
Property Value
Type | Description |
---|---|
TSubscriber | The subscriber. |
Unsubscriptions
Gets the unsubscriptions of this particular subscription.
Declaration
public ISet<TClassifier> Unsubscriptions { get; }
Property Value
Type | Description |
---|---|
ISet<TClassifier> | The unsubscriptions. |