Class DesktopService
Implements a gPRC service that implements Hyper-V and other operations that may require elevated permissions. The idea is to deploy this within a Windows Service that runs as administrator so that this service can perform these operations on behalf of the neon-desktop or neon-cli applications that do not have these rights.
Namespace: Neon.Kube.DesktopService
Assembly: Neon.Kube.DesktopService.dll
Syntax
public sealed class DesktopService
Constructors
DesktopService(string)
This constructor starts the server using a Unix domain socket at the specified file system path. The server will run until disposed.
note
This service is currently exposed as HTTP, not HTTPS.
Declaration
public DesktopService(string socketPath = null)
Parameters
Type | Name | Description |
---|---|---|
string | socketPath | Optionally overrides the path to the Unix domain socket path. This defaults to
Win |
Exceptions
Type | Condition |
---|---|
Grpc |
Thrown when the service could not be started. |
Properties
LogExporter
Returns the log exporter used to relay logs from neon-cli and neon-desktop to the headend.
Declaration
public static OtlpLogExporterWrapper LogExporter { get; }
Property Value
Type | Description |
---|---|
Otlp |
TraceExporter
Returns the trace exporter used to relay traces from neon-cli and neon-desktop to the headend.
Declaration
public static OtlpTraceExporter TraceExporter { get; }
Property Value
Type | Description |
---|---|
Otlp |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()