React to ISession cancellation changes

This commit is contained in:
Chris R 2017-07-05 14:20:30 -07:00
parent 4e644ef41c
commit 283f09e80c
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
@ -21,12 +22,12 @@ namespace MusicStore.Controllers
_store.Clear(); _store.Clear();
} }
public Task CommitAsync() public Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
{ {
return Task.FromResult(0); return Task.FromResult(0);
} }
public Task LoadAsync() public Task LoadAsync(CancellationToken cancellationToken = default(CancellationToken))
{ {
return Task.FromResult(0); return Task.FromResult(0);
} }