HardwareInfo
Ecng.Interop
Provides methods to generate a hardware-based identifier.
Methoden
GetId
public static string GetId()
result = HardwareInfo.GetId()
Gets the hardware identifier.
Rückgabe: 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.
Rückgabe: A task that represents the asynchronous operation. The task result contains a string representing the hardware identifier.