Table of Contents

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

commander IAsciiCommander

The commander to perform the command

command TCommand

The command to perform

Returns

Task<TCommand>

The task to execute the command and return it after execution

Type Parameters

TCommand

The 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

commander IAsciiCommander

The commander to perform the command

command TCommand

The command to perform

Returns

TCommand

The command after execution

Type Parameters

TCommand

The 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

commander IAsciiCommander

The commander to perform the command

command IAsciiCommand

The command to perform