Table of Contents

Class CommandContextExtensions

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

Extensions for ICommandContext.

public static class CommandContextExtensions
Inheritance
CommandContextExtensions
Inherited Members

Methods

Restrict(ICommandContext, bool?, bool?)

Returns a view of the context presenting narrowed permissions, typically for a spec delegating to its base implementation. Commands registered against the view share the context's registry, feedback, validation and serial execution.

public static ICommandContext Restrict(this ICommandContext context, bool? canCreate = null, bool? canDelete = null)

Parameters

context ICommandContext

The context to present a view of.

canCreate bool?

Replaces CanCreate; null presents the context's own value.

canDelete bool?

Replaces CanDelete; null presents the context's own value.

Returns

ICommandContext