C# Class CQRSMicroservices.ServiceFabric.EventBusService.EventBusService

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

Méthodes publiques

Méthode Description
Dispatch ( string eventJson ) : Task

Méthodes protégées

Méthode 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

Méthode Description
CreateCommunicationListener ( ServiceInitializationParameters serviceInitializationParameters ) : ICommunicationListener

Creates the communication listener.

Method Details

CreateServiceReplicaListeners() protected méthode

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

Dispatch() public méthode

public Dispatch ( string eventJson ) : Task
eventJson string
Résultat Task

RunAsync() protected méthode

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.
Résultat Task