React to ISession cancellation changes

This commit is contained in:
Chris R 2017-07-05 09:59:14 -07:00
parent 8963b83dd3
commit b9541be20d
2 changed files with 6 additions and 4 deletions

View File

@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text.Encodings.Web;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Http;
@ -276,12 +277,12 @@ namespace Microsoft.AspNetCore.Mvc
public bool IsAvailable { get; } = true;
public Task LoadAsync()
public Task LoadAsync(CancellationToken cancellationToken = default(CancellationToken))
{
return Task.FromResult(0);
}
public Task CommitAsync()
public Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
{
return Task.FromResult(0);
}

View File

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
@ -305,12 +306,12 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
public bool IsAvailable { get; } = true;
public Task LoadAsync()
public Task LoadAsync(CancellationToken cancellationToken = default(CancellationToken))
{
return Task.FromResult(0);
}
public Task CommitAsync()
public Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
{
return Task.FromResult(0);
}