C# Class Lokad.Cloud.ServiceFabric.Runtime.Runtime

Organize the executions of the services.
Afficher le fichier Open project: Lokad/lokad-cloud Class Usage Examples

Méthodes publiques

Méthode Description
Execute ( ) : void

Called once by the service fabric. Call is not supposed to return until stop is requested, or an uncaught exception is thrown.

Runtime ( CloudStorageProviders storage, IEnvironment environment, CloudConfigurationSettings settings, ILog log, ICloudRuntimeObserver observer = null ) : System

IoC constructor.

Stop ( ) : void

Stops all services at once.

Called once by the service fabric when environment is about to be shut down.

Private Methods

Méthode Description
GetNameOfServiceInExecution ( ) : string

The name of the service that is being executed, if any, null otherwise.

LoadAndBuildApplication ( List &services ) : IContainer

Load and get all initialized service instances using the provided IoC container.

Method Details

Execute() public méthode

Called once by the service fabric. Call is not supposed to return until stop is requested, or an uncaught exception is thrown.
public Execute ( ) : void
Résultat void

Runtime() public méthode

IoC constructor.
public Runtime ( CloudStorageProviders storage, IEnvironment environment, CloudConfigurationSettings settings, ILog log, ICloudRuntimeObserver observer = null ) : System
storage CloudStorageProviders
environment IEnvironment
settings CloudConfigurationSettings
log ILog
observer ICloudRuntimeObserver
Résultat System

Stop() public méthode

Stops all services at once.
Called once by the service fabric when environment is about to be shut down.
public Stop ( ) : void
Résultat void