Class ExecuteExtensions
- Namespace
 - TechnologySolutions.Rfid.AsciiProtocol
 
- Assembly
 - TechnologySolutions.Rfid.AsciiProtocol.Core.dll
 
Extensions methods to execute a command
public static class ExecuteExtensions
  - Inheritance
 - 
      
      ExecuteExtensions
 
- Inherited Members
 
Methods
ExecuteAsync<TCommand>(IAsciiCommander, TCommand)
Executes the command synchronously (sends the command to the reader, captures the response and updates the command) and returns the executed command
public static Task<TCommand> ExecuteAsync<TCommand>(this IAsciiCommander commander, TCommand command) where TCommand : AsciiCommandBase
  Parameters
commanderIAsciiCommanderThe commander to perform the command
commandTCommandThe command to perform
Returns
- Task<TCommand>
 The task to execute the command and return it after execution
Type Parameters
TCommandThe command type to execute
Execute<TCommand>(IAsciiCommander, TCommand)
Executes the command synchronously (sends the command to the reader, captures the response and updates the command) and returns the executed command
public static TCommand Execute<TCommand>(this IAsciiCommander commander, TCommand command) where TCommand : AsciiCommandBase
  Parameters
commanderIAsciiCommanderThe commander to perform the command
commandTCommandThe command to perform
Returns
- TCommand
 The command after execution
Type Parameters
TCommandThe command type to execute
Transmit(IAsciiCommander, IAsciiCommand)
Executes the command asynchronously (sends the command to the reader and returns)
public static void Transmit(this IAsciiCommander commander, IAsciiCommand command)
  Parameters
commanderIAsciiCommanderThe commander to perform the command
commandIAsciiCommandThe command to perform