Table of Contents

Interface IReaderConnectionManager

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

Provides methods to list the INamedReader that are available and manage the connection to a single reader

public interface IReaderConnectionManager : IDisposable
Inherited Members

Properties

ConnectedReader

Gets the name of the currently connected reader

INamedReader ConnectedReader { get; }

Property Value

INamedReader

ConnectionState

Gets a value indicating the current connection state

ReaderConnectionState ConnectionState { get; }

Property Value

ReaderConnectionState

ConnectionTransport

Gets the transport for the currently connected reader

IAsciiSerialTransport ConnectionTransport { get; }

Property Value

IAsciiSerialTransport

IsConnected

Gets a value indicating whether the manager has a current reader connection

bool IsConnected { get; }

Property Value

bool

Methods

AddNewReader()

Shows a user interface to add a new reader to the available readers list

void AddNewReader()

ConnectAsync(INamedReader)

Connects to the specified reader

Task ConnectAsync(INamedReader target)

Parameters

target INamedReader

The reader to connect to

Returns

Task

A task to perform the asynchronous function

Disconnect()

Disconnects from the currently connected reader

void Disconnect()

ListAvailableReadersAsync()

Returns a list of readers that can be connected to

Task<IEnumerable<INamedReader>> ListAvailableReadersAsync()

Returns

Task<IEnumerable<INamedReader>>

A task to get the list of readers that can be connected to

ShowSettings()

Shows the settings to turn Bluetooth on

void ShowSettings()

Events

ConnectionStateChanged

Raised when the reader connection before ConnectionState and IsConnected are about to change state Warning: These can be raised from non-UI threads

event EventHandler ConnectionStateChanged

Event Type

EventHandler