Table of Contents

Class ReaderConnectionManagerAdapter

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

Emulation of the old IReaderConnectionManager using the newer Connections classes

public class ReaderConnectionManagerAdapter : ReaderConnectionManagerBase, IReaderConnectionManager, IDisposable
Inheritance
ReaderConnectionManagerAdapter
Implements
Inherited Members

Constructors

ReaderConnectionManagerAdapter(IAsciiTransportsManager)

Initializes a new instance of the ReaderConnectionManagerAdapter

public ReaderConnectionManagerAdapter(IAsciiTransportsManager manager)

Parameters

manager IAsciiTransportsManager

The manager to adapt to the old connection manager

Methods

AddNewReader()

As we only expect one enumerator to provide ShowAddNew() this calls the first enumerator where CanShowAddNew is true

public override void AddNewReader()

ListAvailableReadersAsync()

Task to return a list of available readers

public override Task<IEnumerable<INamedReader>> ListAvailableReadersAsync()

Returns

Task<IEnumerable<INamedReader>>

Task that returns list of available readers

PerformConnectAsync(INamedReader)

Asynchronous Task to connect to the reader

protected override Task<IAsciiSerialTransport> PerformConnectAsync(INamedReader target)

Parameters

target INamedReader

the reader to connect to

Returns

Task<IAsciiSerialTransport>

a Task to perform the connection

ShowSettings()

Does nothing

public override void ShowSettings()