Class TransportStateChangedEventArgs
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol.Transports
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
EventArgs raised when the ConnectionState of an State changes
public class TransportStateChangedEventArgs : EventArgs
- Inheritance
-
TransportStateChangedEventArgs
- Inherited Members
Constructors
TransportStateChangedEventArgs(IAsciiTransport)
Initializes a new instance of the TransportStateChangedEventArgs class
[Obsolete("There are many cases where the transport state is modified before the event is fully propagated, so explicitly pass the state")]
public TransportStateChangedEventArgs(IAsciiTransport changed)
Parameters
changed
IAsciiTransportThe ASCII transport with the changed state
TransportStateChangedEventArgs(IAsciiTransport, ConnectionState)
Initializes a new instance of the TransportStateChangedEventArgs class
public TransportStateChangedEventArgs(IAsciiTransport transport, ConnectionState state)
Parameters
transport
IAsciiTransportThe transport with a change in state
state
ConnectionStateThe new state that raised the event
Properties
State
Gets the state of the Transport when the event was raised
public ConnectionState State { get; }
Property Value
Transport
Gets the IAsciiTransport with the change in ConnectionState
public IAsciiTransport Transport { get; }
Property Value
Remarks
This may also be the sender of the event but does not involve the cast.