Table of Contents

Class AsciiTransportsManagerExtensions

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

Helper methods for the IAsciiTransportsManager

public static class AsciiTransportsManagerExtensions
Inheritance
AsciiTransportsManagerExtensions
Inherited Members

Methods

ListAsciiTransportsAsync(IAsciiTransportsManager)

Returns a task to enumerate all the available transports on all enumerators of the manager

public static Task<IEnumerable<IAsciiTransport>> ListAsciiTransportsAsync(this IAsciiTransportsManager manager)

Parameters

manager IAsciiTransportsManager

The manager to use

Returns

Task<IEnumerable<IAsciiTransport>>

The task to enumerate all the transports

Exceptions

ArgumentNullException

If manager is null

ShowAddNew(IAsciiTransportsManager)

Calls the ShowAddNew() on the first available enumerator where CanShowAddNew is true

public static void ShowAddNew(this IAsciiTransportsManager manager)

Parameters

manager IAsciiTransportsManager

The manager to use

StartEnumeratorsAsync(IAsciiTransportsManager)

Start all the enumerators of the manager

public static Task StartEnumeratorsAsync(this IAsciiTransportsManager manager)

Parameters

manager IAsciiTransportsManager

The manager to start

Returns

Task

The task to start the enumerators

Exceptions

ArgumentNullException

If manager is null

StopEnumeratorsAsync(IAsciiTransportsManager)

Stop all the enumerators of the manager

public static Task StopEnumeratorsAsync(this IAsciiTransportsManager manager)

Parameters

manager IAsciiTransportsManager

The manager to stop

Returns

Task

The task to stop the enumerators

Exceptions

ArgumentNullException

If manager is null