Interface ICommandHost
APIs for Command display and triggering.
public interface ICommandHost : INotifyCollectionChanged
- Inherited Members
Properties
ExecutingCommand
The currently running Command, if any.
Command? ExecutingCommand { get; }
Property Value
Notifications
Notifications raised by the most recent command.
IReadOnlyList<NotificationModel> Notifications { get; }
Property Value
Progress
The status of the ExecutingCommand, if any.
CurrentStatus? Progress { get; }
Property Value
Methods
ExecuteAsync(Command, IServiceProvider)
Invokes a command, in serial.
Task ExecuteAsync(Command command, IServiceProvider provider)
Parameters
commandCommandproviderIServiceProvider
Returns
GetCommands()
The commands to display in a CommandPanel.
Result<IReadOnlyList<Command>, Exception> GetCommands()
Returns
Events
CanExecuteChanged
event Action? CanExecuteChanged
Event Type
CommandExecuted
event Action? CommandExecuted
Event Type
FeedbackChanged
event Action? FeedbackChanged