C# Class GoogleCloudExtension.Utils.ProtectedCommand

This class implements the ICommand interface and wraps the action for the command in ErrorHandlerUtils.HandleExceptions(Action) to handle the exceptions that could escape.
Inheritance: ICommand
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-visualstudio Class Usage Examples

Méthodes publiques

Méthode Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
ProtectedCommand ( System.Action handler, bool canExecuteCommand = true ) : System

Initializes a new instance of ProtectedCommand.

Method Details

CanExecute() public méthode

public CanExecute ( object parameter ) : bool
parameter object
Résultat bool

Execute() public méthode

public Execute ( object parameter ) : void
parameter object
Résultat void

ProtectedCommand() public méthode

Initializes a new instance of ProtectedCommand.
public ProtectedCommand ( System.Action handler, bool canExecuteCommand = true ) : System
handler System.Action The action to execute when the command is executed.
canExecuteCommand bool Whether the command is enabled or not.
Résultat System