Show / Hide Table of Contents

Class TestAutomatedBot

A test bot that runs enum-based actions.

Inheritance
object
EventPublisher<BotActionEventArgs>
BotWithEvents<TestBotAction>
AutomatedBotBase<TestBotAction>
AutomatedBot<TestAutomatedBot, TestBotAction>
TestAutomatedBot
Implements
IBotWithEvents<TestBotAction>
IBotWithEvents
IBotWithQueue<TestBotAction>
IBotWithQueue
IAutomatedBot<TestBotAction>
IAutomatedBot
IHasParameters
IDisposable
IEventAggregator<BotActionEventArgs>
IEventPublisher<BotActionEventArgs>
IEventProcessor
Inherited Members
AutomatedBot<TestAutomatedBot, TestBotAction>.GetOperation(TestBotAction)
AutomatedBot<TestAutomatedBot, TestBotAction>.StartOrResumeExecution<T>(IOperation<T>, T, CancellationToken)
AutomatedBot<TestAutomatedBot, TestBotAction>.StartOrResumeExecution(TestBotAction, CancellationToken)
AutomatedBot<TestAutomatedBot, TestBotAction>.StartExecution(IOperation<TestAutomatedBot>, CancellationToken)
AutomatedBot<TestAutomatedBot, TestBotAction>.StartExecution<T>(IOperation<T>, T, CancellationToken)
AutomatedBotBase<TestBotAction>.QueueStarted
AutomatedBotBase<TestBotAction>.QueueStopped
AutomatedBotBase<TestBotAction>.StopAfterError
AutomatedBotBase<TestBotAction>.IsRunning
AutomatedBotBase<TestBotAction>.CurrentAction
AutomatedBotBase<TestBotAction>.QueueIndex
AutomatedBotBase<TestBotAction>.QueueCount
AutomatedBotBase<TestBotAction>.Start()
AutomatedBotBase<TestBotAction>.Start(int)
AutomatedBotBase<TestBotAction>.Stop()
AutomatedBotBase<TestBotAction>.Reset()
AutomatedBotBase<TestBotAction>.Dispose()
AutomatedBotBase<TestBotAction>.SetActions(IEnumerable<TestBotAction>)
AutomatedBotBase<TestBotAction>.StartOrResumeExecution(TestBotAction, CancellationToken)
AutomatedBotBase<TestBotAction>.OnQueueStarted()
AutomatedBotBase<TestBotAction>.OnQueueStopped()
AutomatedBotBase<TestBotAction>.HandleActionFailed(TestBotAction, Exception)
BotWithEvents<TestBotAction>.ActionStarted
BotWithEvents<TestBotAction>.ActionFailed
BotWithEvents<TestBotAction>.ActionFinished
BotWithEvents<TestBotAction>.Name
BotWithEvents<TestBotAction>.CurrentUrge
BotWithEvents<TestBotAction>.Parameters
BotWithEvents<TestBotAction>.ToString()
BotWithEvents<TestBotAction>.OnActionStarted()
BotWithEvents<TestBotAction>.OnActionFinished(TestBotAction)
BotWithEvents<TestBotAction>.OnActionFailed(TestBotAction, 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.EnumBased
Assembly: BotBrain.Samples.dll
Syntax
public class TestAutomatedBot : AutomatedBot<TestAutomatedBot, TestBotAction>, IBotWithEvents<TestBotAction>, IBotWithEvents, IBotWithQueue<TestBotAction>, IBotWithQueue, IAutomatedBot<TestBotAction>, IAutomatedBot, IHasParameters, IDisposable, IEventAggregator<BotActionEventArgs>, IEventPublisher<BotActionEventArgs>, IEventProcessor

Constructors

View Source

TestAutomatedBot(string?)

Initializes a new instance of the TestAutomatedBot class.

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

The bot name.

Properties

View Source

RecentEvents

Gets a read-only list of recent events.

Declaration
public IReadOnlyList<BotActionEventArgs> RecentEvents { get; }
Property Value
Type Description
IReadOnlyList<BotActionEventArgs>

Methods

View Source

ClearEvents()

Clears the list of events.

Declaration
public void ClearEvents()
View Source

ProcessEvents()

Processes an internal buffer of events.

Declaration
public void ProcessEvents()

Implements

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

Extension Methods

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