Class BackgroundWorkerBase
Inheritance
System.Object
BackgroundWorkerBase
Implements
ISingletonDependency
Assembly: Volo.Abp.BackgroundWorkers.dll
Syntax
public abstract class BackgroundWorkerBase : object, IBackgroundWorker, IRunnable, ISingletonDependency
Fields
ServiceProviderLock
Declaration
protected readonly object ServiceProviderLock
Field Value
| Type |
Description |
| System.Object |
|
Properties
Logger
Declaration
protected ILogger Logger { get; }
Property Value
LoggerFactory
Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
| Type |
Description |
| ILoggerFactory |
|
ServiceProvider
Declaration
public IServiceProvider ServiceProvider { get; set; }
Property Value
| Type |
Description |
| IServiceProvider |
|
Methods
LazyGetRequiredService<TService>(ref TService)
Declaration
protected TService LazyGetRequiredService<TService>(ref TService reference)
Parameters
| Type |
Name |
Description |
| TService |
reference |
|
Returns
| Type |
Description |
| TService |
|
Type Parameters
| Name |
Description |
| TService |
|
LazyGetRequiredService<TRef>(Type, ref TRef)
Declaration
protected TRef LazyGetRequiredService<TRef>(Type serviceType, ref TRef reference)
Parameters
| Type |
Name |
Description |
| Type |
serviceType |
|
| TRef |
reference |
|
Returns
Type Parameters
StartAsync(CancellationToken)
Declaration
public virtual Task StartAsync(CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
|
Returns
StopAsync(CancellationToken)
Declaration
public virtual Task StopAsync(CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Implements
ISingletonDependency
Extension Methods