C# Класс Akka.Event.EventStream

The EventStream is a pub-sub stream of events that can be both system and user generated. The subscribers are IActorRef instances and events can be any object. Subscriptions are hierarchical meaning that if you listen to an event for a particular type you will receive events for that type and any sub types. If the debug flag is activated any operations on the event stream will be published as debug level events.
Наследование: LoggingBus
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
EventStream ( bool debug ) : System

Initializes a new instance of the EventStream class.

InitUnsubscriber ( IActorRef unsubscriber, ActorSystem system ) : bool
StartUnsubscriber ( ActorSystemImpl system ) : void
Subscribe ( IActorRef subscriber, Type channel ) : bool

Subscribes the specified subscriber.

Unsubscribe ( IActorRef subscriber ) : bool

Unsubscribes the specified subscriber.

Unsubscribe ( IActorRef subscriber, Type channel ) : bool

Unsubscribes the specified subscriber.

Приватные методы

Метод Описание
RegisterWithUnsubscriber ( IActorRef subscriber ) : void
UnregisterIfNoMoreSubscribedChannels ( IActorRef subscriber ) : void

Описание методов

EventStream() публичный Метод

Initializes a new instance of the EventStream class.
public EventStream ( bool debug ) : System
debug bool if set to true [debug].
Результат System

InitUnsubscriber() публичный Метод

public InitUnsubscriber ( IActorRef unsubscriber, ActorSystem system ) : bool
unsubscriber IActorRef
system ActorSystem
Результат bool

StartUnsubscriber() публичный Метод

public StartUnsubscriber ( ActorSystemImpl system ) : void
system ActorSystemImpl
Результат void

Subscribe() публичный Метод

Subscribes the specified subscriber.
subscriber
public Subscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
Результат bool

Unsubscribe() публичный Метод

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber ) : bool
subscriber IActorRef The subscriber.
Результат bool

Unsubscribe() публичный Метод

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
Результат bool