HardwareInfo
Ecng.Interop
Provides methods to generate a hardware-based identifier.
Métodos
GetId
public static string GetId()
result = HardwareInfo.GetId()
Gets the hardware identifier.
Devuelve: A string representing the hardware identifier.
GetIdAsync
public static Task<string> GetIdAsync(CancellationToken cancellationToken)
result = HardwareInfo.GetIdAsync(cancellationToken)
Asynchronously gets the hardware identifier.
- cancellationToken
- A token to monitor for cancellation requests.
Devuelve: A task that represents the asynchronous operation. The task result contains a string representing the hardware identifier.