Class BugActionRegistry
A registry of ITokenResolver instances.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class BugActionRegistry : BindableBase, INotifyPropertyChanged
Constructors
View SourceBugActionRegistry()
Initializes a new instance of the BugActionRegistry class.
Declaration
public BugActionRegistry()
Properties
View SourceRegisteredActions
Gets the currently registered actions for the currently selected title.
Declaration
public IReadOnlyList<BugAction> RegisteredActions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<BugAction> |
Methods
View SourceGetHashedActionName(string, BugAction)
Gets the hashed name of an action.
Declaration
public static string GetHashedActionName(string title, BugAction action)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this action belongs to. |
BugAction | action | The action. |
Returns
Type | Description |
---|---|
string | The hashed action named. |
GetHashedActionName(string, string)
Gets the hashed name of an action.
Declaration
public static string GetHashedActionName(string title, string actionFriendlyName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this action belongs to. |
string | actionFriendlyName | The action's friendly name. |
Returns
Type | Description |
---|---|
string | The hashed action named. |
RegisterAction(string, BugAction)
Register a BugAction
Declaration
public void RegisterAction(string title, BugAction action)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title to register the action with. |
BugAction | action | The action to register. |
RegisterActions(string, IEnumerable<BugAction>)
Utility to register multiple BugActions in a single call.
Declaration
public void RegisterActions(string title, IEnumerable<BugAction> actions)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title to register the actions for. |
IEnumerable<BugAction> | actions | The actions to register. |
UnregisterAction(string, string)
Unregister the BugAction with the given name for the given title.
Declaration
public void UnregisterAction(string title, string actionFriendlyName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this action is for. |
string | actionFriendlyName | The friendly name of the action to remove. |
UnregisterActionsForTitle(string)
Unregister all registered Bug Actions for the given title.
Declaration
public void UnregisterActionsForTitle(string title)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title that should have their actions removed. |