C# Class CQRSMicroservices.ServiceFabric.EventBusService.EventBusService

The FabricRuntime creates an instance of this class for each service type instance.
Inheritance: StatefulService, IEventBusService
Show file Open project: AFASResearch/CQRS-Playground

Public Methods

Method Description
Dispatch ( string eventJson ) : Task

Protected Methods

Method Description
CreateServiceReplicaListeners ( ) : IEnumerable

Optional override to create listeners (like tcp, http) for this service replica.

RunAsync ( CancellationToken cancellationToken ) : Task

This is the main entry point for your service's partition replica. RunAsync executes when the primary replica for this partition has write status.

Private Methods

Method Description
CreateCommunicationListener ( ServiceInitializationParameters serviceInitializationParameters ) : ICommunicationListener

Creates the communication listener.

Method Details

CreateServiceReplicaListeners() protected method

Optional override to create listeners (like tcp, http) for this service replica.
protected CreateServiceReplicaListeners ( ) : IEnumerable
return IEnumerable

Dispatch() public method

public Dispatch ( string eventJson ) : Task
eventJson string
return Task

RunAsync() protected method

This is the main entry point for your service's partition replica. RunAsync executes when the primary replica for this partition has write status.
protected RunAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken Canceled when Service Fabric terminates this partition's replica.
return Task