Class DeviceBot
A bot for a DeviceConsole device.
Implements
IEventPublisher<BotActionEventArgs>
    
    
    
    
    
    
    
    
  Inherited Members
      EventPublisher<BotActionEventArgs>.EventReceived
    
    
    
    
    
    
    
  Namespace: Microsoft.XboxStudios.BotBrain.Devices
Assembly: BotBrain.Devices.dll
Syntax
public class DeviceBot : AutomatedBot<DeviceBot, IDeviceOperation>, IEventPublisher<BotActionEventArgs>, IBotWithEvents<IDeviceOperation>, IBotWithEvents, IBotWithQueue<IDeviceOperation>, IBotWithQueue, IAutomatedBot<IDeviceOperation>, IAutomatedBot, IHasParameters, IDisposableConstructors
View SourceDeviceBot(IDevice)
Initializes a new instance of the DeviceBot class.
Declaration
public DeviceBot(IDevice device)Parameters
| Type | Name | Description | 
|---|---|---|
| IDevice | device | The device. | 
Properties
View SourceDevice
Gets the device.
Declaration
public IDevice Device { get; }Property Value
| Type | Description | 
|---|---|
| IDevice | 
Methods
View SourceStartOrResumeExecution(IDeviceOperation, CancellationToken)
Starts executing the action on this bot, or waits for it to finish if it's already running.
Declaration
protected override Task<bool> StartOrResumeExecution(IDeviceOperation operation, CancellationToken token)Parameters
| Type | Name | Description | 
|---|---|---|
| IDeviceOperation | operation | The action. | 
| CancellationToken | token | A token to monitor for cancellation. | 
Returns
| Type | Description | 
|---|---|
| Task<bool> | True if the operation was successful. | 
Overrides
Implements
      Microsoft.XboxStudios.GameStateTracker.Events.IEventPublisher<T>