Class CommandContextExtensions
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
contextICommandContextThe context to present a view of.
canCreatebool?Replaces CanCreate; null presents the context's own value.
canDeletebool?Replaces CanDelete; null presents the context's own value.