Class AbpTimer
Inheritance
object
AbpTimer
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Threading
Assembly: Volo.Abp.Threading.dll
Syntax
public class AbpTimer : ITransientDependency
Constructors
AbpTimer()
Declaration
public AbpTimer()
Properties
ExceptionNotifier
Declaration
public IExceptionNotifier ExceptionNotifier { get; set; }
Property Value
Type | Description |
---|---|
IExceptionNotifier |
Logger
Declaration
public ILogger<AbpTimer> Logger { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.ILogger<TCategoryName><AbpTimer> |
Period
Declaration
public int Period { get; set; }
Property Value
Type | Description |
---|---|
int |
RunOnStart
Declaration
public bool RunOnStart { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Start(CancellationToken)
Declaration
public void Start(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Stop(CancellationToken)
Declaration
public void Stop(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Events
Elapsed
Declaration
public event EventHandler Elapsed
Event Type
Type | Description |
---|---|
System.EventHandler |