BackgroundService class abstract
Base class for implementing a long running HostedService.
- Implemented types
Constructors
Properties
-
executeOperation
→ CancelableOperation<
void> ? -
Gets the
CancelableOperation
that executes the background operation.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Performs application-defined tasks associated with freeing, releasing,
or resetting unmanaged resources.
override
-
execute(
CancellationToken stoppingToken) → Future< void> - This method is called when the HostedService starts. The implementation should return a future that represents the lifetime of the long running operation(s) being performed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
CancellationToken cancellationToken) → Future< void> -
Triggered when the application host is ready to start the service.
override
-
stop(
CancellationToken cancellationToken) → Future< void> -
Triggered when the application host is performing a graceful shutdown.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited