Class AutomationTask_ActionListSandbox
Inherited Members
Namespace: DataWeb.Data.Controls
Assembly: DataWeb.Core.dll
Syntax
public class AutomationTask_ActionListSandbox : ActionList
Constructors
AutomationTask_ActionListSandbox(Form, IServiceProvider)
Declaration
public AutomationTask_ActionListSandbox(Form form, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Form | form | |
| IServiceProvider | serviceProvider |
Methods
ExecuteTaskAsync(string)
Declaration
public Task<ContextAction.Result> ExecuteTaskAsync(string itemId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | itemId |
Returns
| Type | Description |
|---|---|
| Task<ContextAction.Result> |
InitAsync(CancellationToken)
Initializes the control asynchronously.
Declaration
public override Task InitAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous initialization operation. |
Overrides
ProcessActionAsync(ContextAction, IUser, string, object, List<ProvidedValue>, NavigationContext, CancellationToken)
Processes action on this control.
Declaration
public override Task<ContextAction.Result> ProcessActionAsync(ContextAction action, IUser user, string itemId = null, object value = null, List<Form.ProvidedValue> controlValues = null, NavigationContext navigationContext = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ContextAction | action | The action to perform. |
| IUser | user | The IUser performing the action. |
| string | itemId | The Id of the item being edited (null if adding new). |
| object | value | |
| List<Form.ProvidedValue> | controlValues | |
| NavigationContext | navigationContext | The NavigationContext of the form. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ContextAction.Result> | The result of the action. |