Class SessionExpiry
Service to automatically remove expired sessions
Inherited Members
Namespace: DuetWebServer.Services
Assembly: DuetWebServer.dll
Syntax
public class SessionExpiry : BackgroundService, IHostedService, IDisposable
Constructors
SessionExpiry(IConfiguration, ISessionStorage)
Constructor of this service class
Declaration
public SessionExpiry(IConfiguration configuration, ISessionStorage sessionStorage)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration | configuration | App configuration |
ISessionStorage | sessionStorage | Session storage |
Methods
ExecuteAsync(CancellationToken)
Maintain active HTTP sessions once per second
Declaration
protected override Task ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task |