Class OperationStateChangedInfo<T>
The event when an operation changes state on an item.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Operations
Assembly: BotBrain.Operations.dll
Syntax
public class OperationStateChangedInfo<T>Type Parameters
| Name | Description | 
|---|---|
| T | The operation's item type. | 
Remarks
Initializes a new instance of the OperationStateChangedInfo<T> class.
Constructors
View SourceOperationStateChangedInfo(T, bool, bool)
The event when an operation changes state on an item.
Declaration
public OperationStateChangedInfo(T item, bool isExecuting = false, bool result = false)Parameters
| Type | Name | Description | 
|---|---|---|
| T | item | The item being operated on. | 
| bool | isExecuting | Whether or not the operation is running. | 
| bool | result | Whether or not the operation was successful. | 
Remarks
Initializes a new instance of the OperationStateChangedInfo<T> class.
Properties
View SourceIsExecuting
Gets a value indicating whether or not the operation is running.
Declaration
public bool IsExecuting { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
Item
Gets the item being operated on.
Declaration
public T Item { get; }Property Value
| Type | Description | 
|---|---|
| T | 
Result
Gets a value indicating whether or not the operation was successful.
Declaration
public bool Result { get; }Property Value
| Type | Description | 
|---|---|
| bool |