Click or drag to resize

KubeServiceOnRunAsync Method

Called to actually implement the service.

Namespace:  Neon.Kube.Service
Assembly:  Neon.Kube.Service (in Neon.Kube.Service.dll) Version: 2.1.0
Syntax
protected abstract Task<int> OnRunAsync()

Return Value

Type: TaskInt32
The the progam exit code.
Remarks

Services should perform any required initialization and then must call SetRunningAsync to indicate that the service should transition into the Running state. This is very important because the service test fixture requires the service to be in the running state before it allows tests to proceed. This is necessary to avoid unit test race conditions.

This method should return the program exit code or throw a ProgramExitException to exit with the program exit code.

See Also