Interface IAutomationScenarioStore
Represents a store for automation scenarios.
Namespace: DataWeb.Automation
Assembly: DataWeb.Core.dll
Syntax
public interface IAutomationScenarioStore
Properties
Name
Gets the name of the automation scenario store.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetScenarioAsync(AutomationScenarioFilter, CancellationToken)
Retrieves a single automation scenario that matches the provided filter.
Declaration
Task<AutomationScenario> GetScenarioAsync(AutomationScenarioFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AutomationScenarioFilter | filter | The filter criteria to apply when retrieving the automation scenario. |
| CancellationToken | cancellationToken | A token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task<AutomationScenario> | A task that represents the asynchronous operation. The task result contains the matching AutomationScenario object. |
GetScenariosAsync(AutomationScenarioFilter, CancellationToken)
Retrieves a collection of automation scenarios based on the provided filter.
Declaration
Task<IEnumerable<AutomationScenario>> GetScenariosAsync(AutomationScenarioFilter filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AutomationScenarioFilter | filter | The filter criteria to apply when retrieving automation scenarios. |
| CancellationToken | cancellationToken | A token to observe while waiting for the task to complete. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<AutomationScenario>> | A task that represents the asynchronous operation. The task result contains a collection of matching AutomationScenario objects. |