ServiceSpecification record

Namespace Runic.Platform.Administration.Windows.Services · Runic.Platform.Administration.Windows 0.7.0-preview.5

public sealed record ServiceSpecification : IEquatable<ServiceSpecification>

Inherits or implements IEquatable.

Creates a Win32 own-process service. Credentials are passed separately and are never part of this model.

Remarks

BinaryCommandLine must quote the executable path when the command line contains whitespace. AccountName is an explicit identity such as NT SERVICE\Name, NT AUTHORITY\LocalService, a domain account or LocalSystem.

Constructors

ServiceSpecification

public ServiceSpecification(string Name, string BinaryCommandLine, string AccountName)

Creates a Win32 own-process service. Credentials are passed separately and are never part of this model.

Remarks

BinaryCommandLine must quote the executable path when the command line contains whitespace. AccountName is an explicit identity such as NT SERVICE\Name, NT AUTHORITY\LocalService, a domain account or LocalSystem.

Properties

AccountName

public string AccountName { get; init; }

No documentation.

BinaryCommandLine

public string BinaryCommandLine { get; init; }

No documentation.

DelayedAutomaticStart

public bool DelayedAutomaticStart { get; init; }

Delayed automatic start, valid only for Automatic.

Dependencies

public ImmutableArray<string> Dependencies { get; init; }

Dependency names, including '+' prefixed load-order groups where needed.

Description

public string Description { get; init; }

Service description.

DisplayName

public string? DisplayName { get; init; }

Display name; null uses Name.

FailurePolicy

public ServiceFailurePolicy? FailurePolicy { get; init; }

Optional recovery configuration.

Name

public string Name { get; init; }

No documentation.

StartMode

public ServiceStartMode StartMode { get; init; }

Start mode; driver modes are not supported for new own-process services.