Class BugAction
An action that can be performed on a BugInfo This is not mutable, i.e. all properties must be specified through the constructor.
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class BugAction
Remarks
Initializes a new instance of the BugAction class.
Constructors
View SourceBugAction(string, string, Func<BugInfo, IGameClient, bool>, Func<BugInfo, IGameClient, Task>)
An action that can be performed on a BugInfo This is not mutable, i.e. all properties must be specified through the constructor.
Declaration
public BugAction(string friendlyName, string description, Func<BugInfo, IGameClient, bool> canPerform, Func<BugInfo, IGameClient, Task> perform)
Parameters
Type | Name | Description |
---|---|---|
string | friendlyName | The friendly name of the bug action. |
string | description | The description of the bug action. |
Func<BugInfo, IGameClient, bool> | canPerform | Whether the bug action can be performed. |
Func<BugInfo, IGameClient, Task> | perform | The task to perform the action. |
Remarks
Initializes a new instance of the BugAction class.
Properties
View SourceCanPerform
Gets a function used to check if the action can be performed.
Declaration
public Func<BugInfo, IGameClient, bool> CanPerform { get; }
Property Value
Type | Description |
---|---|
Func<BugInfo, IGameClient, bool> |
Description
Gets a detailed description of the action.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
FriendlyName
Gets a name that used to represent the action.
Declaration
public string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
Perform
Gets a Func<T, TResult> returning a Task used to perform this.
Declaration
public Func<BugInfo, IGameClient, Task> Perform { get; }
Property Value
Type | Description |
---|---|
Func<BugInfo, IGameClient, Task> |