Show / Hide Table of Contents

Class TestAutomatedBot

A test bot that runs class-based actions.

Inheritance
object
EventPublisher<BotActionEventArgs>
BotWithEvents<TestAction>
AutomatedBotBase<TestAction>
AutomatedBot<TestAutomatedBot, TestAction>
TestAutomatedBot
Implements
IEventPublisher<BotActionEventArgs>
IBotWithEvents<TestAction>
IBotWithEvents
IBotWithQueue<TestAction>
IBotWithQueue
IAutomatedBot<TestAction>
IAutomatedBot
IHasParameters
IDisposable
Inherited Members
AutomatedBot<TestAutomatedBot, TestAction>.GetOperation(TestAction)
AutomatedBot<TestAutomatedBot, TestAction>.StartOrResumeExecution<T>(IOperation<T>, T, CancellationToken)
AutomatedBot<TestAutomatedBot, TestAction>.StartOrResumeExecution(TestAction, CancellationToken)
AutomatedBot<TestAutomatedBot, TestAction>.StartExecution(IOperation<TestAutomatedBot>, CancellationToken)
AutomatedBot<TestAutomatedBot, TestAction>.StartExecution<T>(IOperation<T>, T, CancellationToken)
AutomatedBotBase<TestAction>.QueueStarted
AutomatedBotBase<TestAction>.QueueStopped
AutomatedBotBase<TestAction>.StopAfterError
AutomatedBotBase<TestAction>.IsRunning
AutomatedBotBase<TestAction>.CurrentAction
AutomatedBotBase<TestAction>.QueueIndex
AutomatedBotBase<TestAction>.QueueCount
AutomatedBotBase<TestAction>.Start()
AutomatedBotBase<TestAction>.Start(int)
AutomatedBotBase<TestAction>.Stop()
AutomatedBotBase<TestAction>.Reset()
AutomatedBotBase<TestAction>.Dispose()
AutomatedBotBase<TestAction>.SetActions(IEnumerable<TestAction>)
AutomatedBotBase<TestAction>.StartOrResumeExecution(TestAction, CancellationToken)
AutomatedBotBase<TestAction>.OnQueueStarted()
AutomatedBotBase<TestAction>.OnQueueStopped()
AutomatedBotBase<TestAction>.HandleActionFailed(TestAction, Exception)
BotWithEvents<TestAction>.ActionStarted
BotWithEvents<TestAction>.ActionFailed
BotWithEvents<TestAction>.ActionFinished
BotWithEvents<TestAction>.Name
BotWithEvents<TestAction>.CurrentUrge
BotWithEvents<TestAction>.Parameters
BotWithEvents<TestAction>.ToString()
BotWithEvents<TestAction>.OnActionStarted()
BotWithEvents<TestAction>.OnActionFinished(TestAction)
BotWithEvents<TestAction>.OnActionFailed(TestAction, Exception)
EventPublisher<BotActionEventArgs>.Publish(object, BotActionEventArgs)
EventPublisher<BotActionEventArgs>.EventReceived
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.BotBrain.Samples.ClassBased
Assembly: BotBrain.Samples.dll
Syntax
public class TestAutomatedBot : AutomatedBot<TestAutomatedBot, TestAction>, IEventPublisher<BotActionEventArgs>, IBotWithEvents<TestAction>, IBotWithEvents, IBotWithQueue<TestAction>, IBotWithQueue, IAutomatedBot<TestAction>, IAutomatedBot, IHasParameters, IDisposable

Constructors

View Source

TestAutomatedBot(IDevice?, string?)

Initializes a new instance of the TestAutomatedBot class.

Declaration
public TestAutomatedBot(IDevice? device = null, string? name = null)
Parameters
Type Name Description
IDevice device

The device for the bot.

string name

The name for the bot.

Properties

View Source

Device

Gets the device associated with the bot.

Declaration
public IDevice? Device { get; }
Property Value
Type Description
IDevice
Remarks

The sample allows for a missing device for ease of testing.

Implements

Microsoft.XboxStudios.GameStateTracker.Events.IEventPublisher<T>
IBotWithEvents<TAction>
IBotWithEvents
IBotWithQueue<T>
IBotWithQueue
IAutomatedBot<TAction>
IAutomatedBot
IHasParameters
IDisposable

Extension Methods

IEventPublisherExtensions.WaitForAsync<T>(IEventPublisher<T>, Func<T, bool>?, CancellationToken)
  • View Source
In this article
Back to top Generated by DocFX