Interface IAsyncDatabaseHandler
Assembly: EPiServer.Data.dll
Version: 9.12.2
Syntax
public interface IAsyncDatabaseHandler : IDatabaseHandler
Remarks
Methods
ExecuteAsync(Func<Task>)
An asynchronous version of Execute, opens a connection and executes the function with access to the open connection
Declaration
Task ExecuteAsync(Func<Task> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ExecuteAsync<TResult>(Func<Task<TResult>>)
An asynchronous version of Execute, opens a connection and executes the function with access to the open connection
Declaration
Task<TResult> ExecuteAsync<TResult>(Func<Task<TResult>> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task<TResult>> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult> |
|
Type Parameters
ExecuteTransactionAsync(Func<Task>)
An asynchronous version of ExecuteTransaction, opens a connection and transaction and executes the System.Action with access to the open connection
Declaration
Task ExecuteTransactionAsync(Func<Task> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ExecuteTransactionAsync<TResult>(Func<Task<TResult>>)
An asynchronous version of ExecuteTransaction, opens a connection and transaction and executes the System.Action with access to the open connection
Declaration
Task<TResult> ExecuteTransactionAsync<TResult>(Func<Task<TResult>> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task<TResult>> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult> |
|
Type Parameters
Extension Methods