IScriptExecutorService

Allows the implementation of a services that executes scripts.

Namespace:
KpokPatagon.Data.Migrations
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes

Methods

ExecuteScripts

Orchestrates and executes the specified collection of scripts.

Signature:
public Void ExecuteScripts(scripts, cancellationToken)
Parameters
Name Type Summary
scripts Dictionary<String, ItemProcessFlag> A list of Scripts to be executed on one connection.
cancellationToken CancellationToken A cancellation token to abort the process.
Exceptions
Type Summary
InvalidOperationException

Thrown when there are scripts with different connection names.

-or-

When the required connection is opened.

ExecuteScriptsAsync

Orchestrates and executes the specified collection of scripts.

Signature:
public Task ExecuteScriptsAsync(scripts, cancellationToken)
Parameters
Name Type Summary
scripts Dictionary<String, ItemProcessFlag> A list of Scripts to be executed on one connection.
cancellationToken CancellationToken A cancellation token to abort the process.
Exceptions
Type Summary
InvalidOperationException

Thrown when there are scripts with different connection names.

-or-

When the required connection is opened.