Table of Contents

Class ScreenCommandFactory

Namespace
The.WPF.Screens
Assembly
Instagile.WPF.dll
public static class ScreenCommandFactory
Inheritance
ScreenCommandFactory
Inherited Members

Methods

CreateAsyncCommand(Func<ISurface>, string, Func<Task>, string)

public static IScreenCommand CreateAsyncCommand(Func<ISurface> getSurface, string name, Func<Task> asyncAction, string completeNotification = null)

Parameters

getSurface Func<ISurface>
name string
asyncAction Func<Task>
completeNotification string

Returns

IScreenCommand

CreateAsyncCommand(ISurface, string, Func<Task>, string)

public static IScreenCommand CreateAsyncCommand(ISurface surface, string name, Func<Task> asyncAction, string completeNotification = null)

Parameters

surface ISurface
name string
asyncAction Func<Task>
completeNotification string

Returns

IScreenCommand

CreateCommand(Func<ISurface>, string, Action, string)

public static IScreenCommand CreateCommand(Func<ISurface> getSurface, string name, Action action, string completeNotification = null)

Parameters

getSurface Func<ISurface>
name string
action Action
completeNotification string

Returns

IScreenCommand

CreateCommand(ISurface, string, Action, string)

public static IScreenCommand CreateCommand(ISurface surface, string name, Action action, string completeNotification = null)

Parameters

surface ISurface
name string
action Action
completeNotification string

Returns

IScreenCommand

WrapCommand(ISurface, IScreenCommand, Func<Func<Task>, Task>)

public static IScreenCommand WrapCommand(ISurface surface, IScreenCommand wrappedCommand, Func<Func<Task>, Task> wrappingAction)

Parameters

surface ISurface
wrappedCommand IScreenCommand
wrappingAction Func<Func<Task>, Task>

Returns

IScreenCommand