Click or drag to resize

NeonService Constructor


Namespace:  Neon.Service
Assembly:  Neon.Service (in Neon.Service.dll) Version: 2.14.0
public NeonService(
	string name,
	string version = null,
	string statusFilePath = null,
	ServiceMap serviceMap = null


Type: SystemString
The name of this service within ServiceMap.
version (Optional)
Type: SystemString
Optionally specifies the version of your service formatted as a valid SemanticVersion. This will default to "unknown" when not set or when the value passed is invalid.
statusFilePath (Optional)
Type: SystemString
Optionally specifies the path where the service will update its status (for external health probes). See the class documentation for more information Neon.Service.
serviceMap (Optional)
Type: Neon.ServiceServiceMap
Optionally specifies a service map describing this service and potentially other services. Service maps can be used to run services locally on developer workstations via Neon.Xunit.NeonServiceFixture or other means to avoid port conflicts or to emulate a cluster of services without Kubernetes or containers. This is a somewhat advanced topic that needs documentation.
KeyNotFoundException Thrown if there is no service description for name within the ServiceMap.
See Also