SendCommand Method
SendCommand<TResponse>(IYubiKeyCommand<TResponse>)
Sends a command to the YubiKey device and returns the response.
C#
TResponse SendCommand<TResponse>(IYubiKeyCommand<TResponse> yubiKeyCommand)
where TResponse : IYubiKeyResponse
Parameters
Type | Name | Description |
---|---|---|
IYubiKeyCommand<TResponse> | yubiKeyCommand | The command to be sent to the YubiKey device. |
Returns
TResponse
The response received from the YubiKey device.
Type Parameters
Name | Description |
---|---|
TResponse | The type of response expected from the YubiKey device. |