Table of Contents

Class SwitchAsynchronousResponder

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

Implements a responder that can capture the Asynchronous changes in switch state that are reported when the switch action command is used to enable asynchronous notification of changes in switch state

public class SwitchAsynchronousResponder : IAsciiCommandResponder, INotifyPropertyChanged
Inheritance
SwitchAsynchronousResponder
Implements
Inherited Members
Extension Methods

Properties

State

Gets or sets the current state of the switch

public SwitchState State { get; set; }

Property Value

SwitchState

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event

protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName string

The name of the property with a value that has changed

OnSwitchStateChanged(SwitchState)

Raises the SwitchStateChanged event

protected virtual void OnSwitchStateChanged(SwitchState state)

Parameters

state SwitchState

The new state of the switch

ProcessReceivedLine(IAsciiResponseLine, bool)

Called when a ASCII response line is received from the reader. Processes the line

public bool ProcessReceivedLine(IAsciiResponseLine line, bool moreLinesAvailable)

Parameters

line IAsciiResponseLine

The line to process

moreLinesAvailable bool

True if more lines are to cached to follow

Returns

bool

True if this method has processed the line and no further responders should receive it

Events

PropertyChanged

Raised when the State property changes

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler

SwitchStateChanged

Raised when the State of the switch changes

public event EventHandler<SwitchStateEventArgs> SwitchStateChanged

Event Type

EventHandler<SwitchStateEventArgs>