![]() | NeonService Properties |
The NeonService type exposes the following members.
Name | Description | |||
---|---|---|---|---|
![]() | Arguments |
Returns the list of command line arguments passed to the service. This
defaults to an empty list.
| ||
![]() | BaseUri | For services with exactly one network endpoint, this returns the base URI to be used to access the service.
| ||
![]() | Dependencies |
Used to specify other services that must be reachable via the network before a
NeonService will be allowed to start. This is exposed via the
Dependencies where these values can be configured in
code before RunAsync(Boolean) is called or they can
also be configured via environment variables as described in ServiceDependencies.
| ||
![]() | Description |
Returns the service description for this service (if any).
| ||
![]() | Endpoints |
Returns the dictionary mapping case sensitive service endpoint names to endpoint information.
| ||
![]() | ExitCode |
Returns the exit code returned by the service.
| ||
![]() | ExitException |
Returns any abnormal exception thrown by the derived OnRunAsync method.
| ||
![]() | GitVersion |
Returns GIT branch and commit the service was built from as
well as an optional indication the the build branch had
uncomitted changes (e.g. was dirty).
| ||
![]() | InDevelopment |
Returns true when the service is running in development
or test mode, when the DEV_WORKSTATION environment variable
is defined.
| ||
![]() | InProduction |
Returns true when the service is running in production,
when the DEV_WORKSTATION environment variable is
not defined. The NeonServiceFixure will set this
to true explicitly as well.
| ||
![]() | Log |
Returns the service's default logger.
| ||
![]() | LogManager |
Returns the service's log manager.
| ||
![]() | MetricsOptions | Prometheus metrics options. To enable metrics collection for non-ASPNET applications, we recommend that you simply set Mode==Scrape before calling OnRunAsync. See MetricsOptions for more details. | ||
![]() | Name |
Returns the service name.
| ||
![]() | ServiceMap |
Returns the service map (if any).
| ||
![]() | Status |
Returns the service current running status.
| ||
![]() | Terminator |
Returns the service's ProcessTerminator. This can be used
to handle termination signals.
|