Interface IPlatformMulti
- Namespace
- PalmSens.Core.Simplified
- Assembly
- PalmSens.Core.Simplified.dll
public interface IPlatformMulti
Methods
Connect(IReadOnlyList<Device>, IList<int>)
Connects to the specified channels. Warning use the platform independent method Connect() instead. Otherwise the generic PSMultiCommSimple does not subscribe to the CommManagers correctly
Task<IReadOnlyList<(CommManager Comm, int ChannelIndex, Exception Exception)>> Connect(IReadOnlyList<Device> devices, IList<int> channelIndices = null)
Parameters
devicesIReadOnlyList<Device>Array devices to connect to.
channelIndicesIList<int>Array of unique indices for the specified channel (0, 1, 2, 3... by default)
Returns
- Task<IReadOnlyList<(CommManager Comm, int ChannelIndex, Exception Exception)>>
Disconnect(IReadOnlyList<CommManager>)
Disconnects from channel with the specified CommManagers. Warning use the platform independent method Disconnect() instead. Otherwise the generic PSMultiCommSimple does not unsubscribe from the CommManagers correctly which may result in it not being released from the memory.
Task<IReadOnlyList<(int ChannelIndex, Exception Exception)>> Disconnect(IReadOnlyList<CommManager> comms)
Parameters
commsIReadOnlyList<CommManager>The comm.
Returns
GetAvailableDevices()
Task<IReadOnlyList<Device>> GetAvailableDevices()
Returns
- Task<IReadOnlyList<Device>>
MatchDevices(Device)
Replaces the instance of a device with a new one if possible. This is used to recover a dropped connection.
Task<Device> MatchDevices(Device deviceInErrorState)
Parameters
deviceInErrorStateDevice
Returns
- Task<Device>