Add HttpServerSessionMode for hybrid stateful/stateless HTTP serving (#1796)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
This commit is contained in:
parent
bba45c44bf
commit
c6a97d94d6
1 changed files with 764 additions and 150 deletions
|
|
@ -36,7 +36,7 @@ internal sealed partial class IdleTrackingBackgroundService : BackgroundService
|
|||
public override Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
// In stateless mode there are no sessions to track, so skip starting the periodic timer entirely.
|
||||
if (_options.Value.Stateless)
|
||||
if (_options.Value.SessionMode is HttpServerSessionMode.Stateless)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue