Table of Contents

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 IAsciiTransport

The 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 IAsciiTransport

The transport with a change in state

state ConnectionState

The 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

ConnectionState

Transport

Gets the IAsciiTransport with the change in ConnectionState

public IAsciiTransport Transport { get; }

Property Value

IAsciiTransport

Remarks

This may also be the sender of the event but does not involve the cast.