Try our conversational search powered by Generative AI!

Interface IAsyncDatabaseHandler

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Namespace: EPiServer.Data
Assembly: EPiServer.Data.dll
Version: 8.11.0
Syntax
public interface IAsyncDatabaseHandler : IDatabaseHandler

Methods

ExecuteAsync(Func<Task>)

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>>)

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

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
Name Description
TResult

ExecuteTransactionAsync(Func<Task>)

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>>)

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

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
Name Description
TResult

GetAsyncConnection(Boolean)

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
Task<IAsyncConnectionScope> GetAsyncConnection(bool requireTransaction)
Parameters
Type Name Description
System.Boolean requireTransaction
Returns
Type Description
System.Threading.Tasks.Task<IAsyncConnectionScope>

Extension Methods