Table of Contents

Class OneTimeRunner

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 OneTimeRunner
Inheritance
OneTimeRunner
Inherited Members
Extension Methods

Constructors

OneTimeRunner()

public OneTimeRunner()

Methods

Run(Action)

public void Run(Action action)

Parameters

action Action