![]() | NeonService Methods |
The NeonService type exposes the following members.
Name | Description | |||
---|---|---|---|---|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | ||
![]() | Dispose(Boolean) |
Releases all associated resources.
| ||
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | ||
![]() | Exit |
Used by services to stop themselves, specifying an optional process exit code.
| ||
![]() | Finalize |
Finalizer.
(Overrides ObjectFinalize.) | ||
![]() | GetConfigFilePath |
Returns the physical path for the confguration file whose logical path is specified.
| ||
![]() | GetEnvironmentVariable |
Returns the value of an environment variable.
| ||
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) | ||
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) | ||
![]() | LoadEnvironmentVariables | Loads environment variables formatted as NAME=VALUE from a text file as service environment variables. The file will be decrypted using NeonVault if necessary.
| ||
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | ||
![]() | OnRunAsync |
Called to actually implement the service.
| ||
![]() | RunAsync |
Starts the service if it's not already running. This will call OnRunAsync,
which is your code that actually implements the service. Note that any service dependencies
specified by Dependencies will be verified as ready before OnRunAsync
will be called.
| ||
![]() | SetArguments |
Initializes Arguments with the command line arguments passed.
| ||
![]() | SetConfigFile(String, Byte) |
Maps a logical configuration file path to a temporary file holding the
byte contents passed. This is typically used initializing confguration
files for unit testing.
| ||
![]() | SetConfigFile(String, String, Boolean) |
Maps a logical configuration file path to a temporary file holding the
string contents passed encoded as UTF-8. This is typically used for
initializing confguration files for unit testing.
| ||
![]() | SetConfigFilePath |
Maps a logical configuration file path to an actual file on the
local machine. This is used for unit testing to map a file on
the local workstation to the path where the service expects the
find to be.
| ||
![]() | SetEnvironmentVariable |
Sets or deletes a service environment variable.
| ||
![]() | SetRunningAsync |
Called by OnRunAsync implementation after they've completed any
initialization and are ready for traffic. This sets Status to
Running.
| ||
![]() | SetStatusAsync | |||
![]() | Stop | Stops the service if it's not already stopped. This is intended to be called by external things like unit test fixtures and is not intended to be called by the service itself. | ||
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |