Generated by DocFX

Class IAsyncRelayCommandExtensions

Extensions for the IAsyncRelayCommand type.

Inheritance
System.Object
IAsyncRelayCommandExtensions
Namespace: ISynergy.Framework.Mvvm.Extensions
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public static class IAsyncRelayCommandExtensions : object

Methods

View Source

CreateCancelCommand(IAsyncRelayCommand)

Creates an instance that can be used to cancel execution on the input command. The returned command will also notify when it can be executed based on the state of the wrapped command.

Declaration
public static ICommand CreateCancelCommand(this IAsyncRelayCommand command)
Parameters
Type Name Description
IAsyncRelayCommand command

The input IAsyncRelayCommand instance to create a cancellation command for.

Returns
Type Description
ICommand

An instance that can be used to monitor and signal cancellation for command.

Remarks

The returned instance is not guaranteed to be unique across multiple invocations with the same arguments.