Class OneTimeRunner
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.
Inheritance
System.Object
OneTimeRunner
Namespace: Volo.Abp.Threading
Assembly: Volo.Abp.Core.dll
Syntax
public class OneTimeRunner : object
Methods
Run(Action)
Declaration
public void Run(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action |