C# Class CQRSMicroservices.ServiceFabric.QueryModelBuilderService.QueryModelBuilderService

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

Public Methods

Method Description
Get ( System.Guid id ) : Task
Handle ( 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.

GetQueryModelBuilder ( ) : QueryModelBuilder

Method Details

CreateServiceReplicaListeners() protected method

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

Get() public method

public Get ( System.Guid id ) : Task
id System.Guid
return Task

Handle() public method

public Handle ( 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