Table of Contents

Interface IAsciiResponderChain

Namespace
TechnologySolutions.Rfid.AsciiProtocol
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

Provides methods and properties to manipulate the responder chain used to process command responses

public interface IAsciiResponderChain

Properties

HasSynchronousResponder

Gets a value indicating whether the chain has a synchronous responder

bool HasSynchronousResponder { get; }

Property Value

bool

ResponderChain

Gets the chain of TSLAsciiCommandResponders

IEnumerable<IAsciiCommandResponder> ResponderChain { get; }

Property Value

IEnumerable<IAsciiCommandResponder>

Methods

AddResponder(IAsciiCommandResponder)

Add a responder to the responder chain

void AddResponder(IAsciiCommandResponder responder)

Parameters

responder IAsciiCommandResponder

The responder to add to the chain

AddSynchronousResponder()

Add the synchronous responder into the chain

void AddSynchronousResponder()

Remarks

This is a special responder that dispatches responses through a command’s synchronousCommandResponder property There will only ever be one of these in the command chain

ClearResponders()

Clear all responders from the responder chain

void ClearResponders()

RemoveResponder(IAsciiCommandResponder)

Remove a responder from the responder chain

void RemoveResponder(IAsciiCommandResponder responder)

Parameters

responder IAsciiCommandResponder

The responder to remove from the chain

RemoveSynchronousResponder()

Remove the synchronous responder from the chain

void RemoveSynchronousResponder()

Events

ResponderChainError

The event raise when there was an error in the ResponderChain

event EventHandler<ResponderChainExceptionArgs> ResponderChainError

Event Type

EventHandler<ResponderChainExceptionArgs>