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
Methods
OnPropertyChanged(string)
Raises the PropertyChanged event
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
stringThe name of the property with a value that has changed
OnSwitchStateChanged(SwitchState)
Raises the SwitchStateChanged event
protected virtual void OnSwitchStateChanged(SwitchState state)
Parameters
state
SwitchStateThe 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
IAsciiResponseLineThe line to process
moreLinesAvailable
boolTrue 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
SwitchStateChanged
Raised when the State of the switch changes
public event EventHandler<SwitchStateEventArgs> SwitchStateChanged