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

Organize the executions of the services.
Datei anzeigen Open project: Lokad/lokad-cloud Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return void

Runtime() public method

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
return System

Stop() public method

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