Interface IDeviceProvider
An interface used to provide device implementations with composition.
Namespace: Microsoft.XboxStudios.BotBrain.Devices
Assembly: BotBrain.Devices.dll
Syntax
public interface IDeviceProvider
Methods
View SourceFromNameAsync(string)
Gets a device with the given name.
Declaration
Task<IDevice?> FromNameAsync(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The device name. |
Returns
| Type | Description |
|---|---|
| Task<IDevice> | The device, if it exists. |