API Reference
Class
Services
High-level facade for querying service status across local/remote machines using Native, WMI, or CIM engines.
Inheritance
- Object
- Services
Methods
Get 2 overloads
public static List<ServiceInfo> Get(IEnumerable<String> serviceNames = null, ServiceEngine engine = Auto, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
List<ServiceInfo>Synchronous convenience wrapper for local machine.
Parameters
- serviceNames System.Collections.Generic.IEnumerable{System.String} = null
- engine ComputerX.Services.ServiceEngine = Auto
- timeout System.Nullable{System.TimeSpan} = null
- ct System.Threading.CancellationToken = null
public static List<ServiceInfo> Get(String host, IEnumerable<String> serviceNames = null, ServiceEngine engine = Auto, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
List<ServiceInfo>Synchronous convenience wrapper.
Parameters
- host System.String
- serviceNames System.Collections.Generic.IEnumerable{System.String} = null
- engine ComputerX.Services.ServiceEngine = Auto
- timeout System.Nullable{System.TimeSpan} = null
- ct System.Threading.CancellationToken = null
GetAsync 3 overloads
public static async Task<List<ServiceInfo>> GetAsync(IEnumerable<String> hosts, IEnumerable<String> serviceNames = null, ServiceEngine engine = Auto, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<List<ServiceInfo>>Retrieves services from a host. When serviceNames is null or empty, all services are returned. Always includes full details (Status, StartupType, Description, BinaryPath, Account).
Parameters
- host System.String
- serviceNames System.Collections.Generic.IEnumerable{System.String} = null
- engine ComputerX.Services.ServiceEngine = Auto
- timeout System.Nullable{System.TimeSpan} = null
- ct System.Threading.CancellationToken = null
public static Task<List<ServiceInfo>> GetAsync(IEnumerable<String> serviceNames = null, ServiceEngine engine = Auto, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<List<ServiceInfo>>Convenience overload: local machine. Same semantics as GetAsync(host, ...), with host defaulting to Environment.MachineName.
Parameters
- serviceNames System.Collections.Generic.IEnumerable{System.String} = null
- engine ComputerX.Services.ServiceEngine = Auto
- timeout System.Nullable{System.TimeSpan} = null
- ct System.Threading.CancellationToken = null
GetAsync(System.Collections.Generic.IEnumerable{System.String} hosts, System.Collections.Generic.IEnumerable{System.String} serviceNames, ComputerX.Services.ServiceEngine engine, System.Nullable{System.TimeSpan} timeout, System.Threading.CancellationToken ct) #Multi-host variant. Aggregates results across hosts.
Parameters
- hosts System.Collections.Generic.IEnumerable{System.String}
- serviceNames System.Collections.Generic.IEnumerable{System.String}
- engine ComputerX.Services.ServiceEngine
- timeout System.Nullable{System.TimeSpan}
- ct System.Threading.CancellationToken
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object