Table of Contents

Interface ICommandHost

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll

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

Command

Notifications

Notifications raised by the most recent command.

IReadOnlyList<NotificationModel> Notifications { get; }

Property Value

IReadOnlyList<NotificationModel>

Progress

The status of the ExecutingCommand, if any.

CurrentStatus? Progress { get; }

Property Value

CurrentStatus

Methods

ExecuteAsync(Command, IServiceProvider)

Invokes a command, in serial.

Task ExecuteAsync(Command command, IServiceProvider provider)

Parameters

command Command
provider IServiceProvider

Returns

Task

GetCommands()

The commands to display in a CommandPanel.

Result<IReadOnlyList<Command>, Exception> GetCommands()

Returns

Result<IReadOnlyList<Command>, Exception>

Events

CanExecuteChanged

event Action? CanExecuteChanged

Event Type

Action

CommandExecuted

event Action? CommandExecuted

Event Type

Action

FeedbackChanged

event Action? FeedbackChanged

Event Type

Action