Class ArubaCommandRegistry
A registry of ArubaCommand instances.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class ArubaCommandRegistry : BindableBase, INotifyPropertyChanged
Constructors
View SourceArubaCommandRegistry()
Initializes a new instance of the ArubaCommandRegistry class.
Declaration
public ArubaCommandRegistry()
Properties
View SourceRegisteredArubaCommands
Gets the currently registered ArubaCommands for the currently selected title.
Declaration
public IReadOnlyList<ArubaCommand> RegisteredArubaCommands { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ArubaCommand> |
Methods
View SourceGetArubaCommandFromRegistry(string, string)
Given a title and the friendly name, gets the corresponding ArubaCommand from the registry.
Declaration
public ArubaCommand GetArubaCommandFromRegistry(string title, string friendlyName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this ArubaCommand belongs to. |
string | friendlyName | The ArubaCommand's friendly name. |
Returns
Type | Description |
---|---|
ArubaCommand | The ArubaCommand. |
GetHashedArubaCommandName(string, ArubaCommand)
Gets the hashed name of a ArubaCommand.
Declaration
public static string GetHashedArubaCommandName(string title, ArubaCommand arubaCommand)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this ArubaCommand belongs to. |
ArubaCommand | arubaCommand | The ArubaCommand. |
Returns
Type | Description |
---|---|
string | The hashed ArubaCommand name. |
GetHashedArubaCommandName(string, string)
Gets the hashed name of a ArubaCommand.
Declaration
public static string GetHashedArubaCommandName(string title, string arubaCommandFriendlyName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this ArubaCommand belongs to. |
string | arubaCommandFriendlyName | The ArubaCommand's friendly name. |
Returns
Type | Description |
---|---|
string | The hashed ArubaCommand name. |
RegisterArubaCommand(string, ArubaCommand)
Register a ArubaCommand
Declaration
public void RegisterArubaCommand(string title, ArubaCommand arubaCommand)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title to register the ArubaCommand with. |
ArubaCommand | arubaCommand | The ArubaCommand to register. |
RegisterArubaCommands(string, IEnumerable<ArubaCommand>)
Utility to register multiple ArubaCommands in a single call.
Declaration
public void RegisterArubaCommands(string title, IEnumerable<ArubaCommand> arubaCommands)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title to register the ArubaCommands for. |
IEnumerable<ArubaCommand> | arubaCommands | The ArubaCommands to register. |
UnregisterArubaCommand(string, string)
Unregister the ArubaCommand with the given name for the given title.
Declaration
public void UnregisterArubaCommand(string title, string arubaCommandFriendlyName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title this ArubaCommand is for. |
string | arubaCommandFriendlyName | The friendly name of the ArubaCommand to remove. |
UnregisterArubaCommandsForTitle(string)
Unregister all registered ArubaCommands for the given title.
Declaration
public void UnregisterArubaCommandsForTitle(string title)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title that should have their ArubaCommands removed. |