forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIHttpActionResult.cs
More file actions
18 lines (16 loc) · 826 Bytes
/
Copy pathIHttpActionResult.cs
File metadata and controls
18 lines (16 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace System.Web.Http
{
/// <summary>Defines a command that asynchronously creates an <see cref="HttpResponseMessage"/>.</summary>
public interface IHttpActionResult
{
/// <summary>Creates an <see cref="HttpResponseMessage"/> asynchronously.</summary>
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
/// <returns>A task that, when completed, contains the <see cref="HttpResponseMessage"/>.</returns>
Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken);
}
}