Show / Hide Table of Contents

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.

Inheritance
object
BugAction
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

BugAction(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 Source

CanPerform

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>
View Source

Description

Gets a detailed description of the action.

Declaration
public string Description { get; }
Property Value
Type Description
string
View Source

FriendlyName

Gets a name that used to represent the action.

Declaration
public string FriendlyName { get; }
Property Value
Type Description
string
View Source

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>
  • View Source
In this article
Back to top Generated by DocFX