C# Класс 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.
Наследование: ICommand
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
ProtectedCommand ( System.Action handler, bool canExecuteCommand = true ) : System

Initializes a new instance of ProtectedCommand.

Описание методов

CanExecute() публичный Метод

public CanExecute ( object parameter ) : bool
parameter object
Результат bool

Execute() публичный Метод

public Execute ( object parameter ) : void
parameter object
Результат void

ProtectedCommand() публичный Метод

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.
Результат System