Table of Contents

Class AsyncOneTimeRunner

Namespace
Volo.Abp.Threading
Assembly
Volo.Abp.Core.dll

This class is used to ensure running of a code block only once. It can be instantiated as a static object to ensure that the code block runs only once in the application lifetime.

public class AsyncOneTimeRunner
Inheritance
AsyncOneTimeRunner
Inherited Members
Extension Methods

Constructors

AsyncOneTimeRunner()

public AsyncOneTimeRunner()

Methods

RunAsync(Func<Task>)

public Task RunAsync(Func<Task> action)

Parameters

action Func<Task>

Returns

Task