Class PreMiddlewareHostedService
Implements
Inherited Members
Namespace: Coree.NETASP.Middleware.NewFolder
Assembly: Coree.NETASP.dll
Syntax
public class PreMiddlewareHostedService : IHostedService
Properties
| Edit this page View SourceStartupCompleted
Gets a task that completes when the startup process is done.
Declaration
public Task StartupCompleted { get; }
Property Value
| Type | Description |
|---|---|
| Task |
Methods
| Edit this page View SourceStartAsync(CancellationToken)
Executes the background service task.
Declaration
public Task StartAsync(CancellationToken stoppingToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | stoppingToken | Token that indicates when to stop the task. |
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
Declaration
public Task StopAsync(CancellationToken stoppingToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | stoppingToken |
Returns
| Type | Description |
|---|---|
| Task | A Task that represents the asynchronous Stop operation. |