React to ISession cancellation changes
This commit is contained in:
parent
4e644ef41c
commit
283f09e80c
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
|
|
@ -21,12 +22,12 @@ namespace MusicStore.Controllers
|
|||
_store.Clear();
|
||||
}
|
||||
|
||||
public Task CommitAsync()
|
||||
public Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
public Task LoadAsync()
|
||||
public Task LoadAsync(CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue