C# Class 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.
Inheritance: LoggingBus
ファイルを表示 Open project: rogeralsing/akka.net Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
RegisterWithUnsubscriber ( IActorRef subscriber ) : void
UnregisterIfNoMoreSubscribedChannels ( IActorRef subscriber ) : void

Method Details

EventStream() public method

Initializes a new instance of the EventStream class.
public EventStream ( bool debug ) : System
debug bool if set to true [debug].
return System

InitUnsubscriber() public method

public InitUnsubscriber ( IActorRef unsubscriber, ActorSystem system ) : bool
unsubscriber IActorRef
system ActorSystem
return bool

StartUnsubscriber() public method

public StartUnsubscriber ( ActorSystemImpl system ) : void
system ActorSystemImpl
return void

Subscribe() public method

Subscribes the specified subscriber.
subscriber
public Subscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
return bool

Unsubscribe() public method

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber ) : bool
subscriber IActorRef The subscriber.
return bool

Unsubscribe() public method

Unsubscribes the specified subscriber.
subscriber
public Unsubscribe ( IActorRef subscriber, Type channel ) : bool
subscriber IActorRef The subscriber.
channel System.Type The channel.
return bool