blob: ce83c591b49cf93f8e0fd1767df616dc107bc9c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Http
{
/// <summary>
/// Defines a contract that represents the result of an HTTP endpoint.
/// </summary>
public interface IResult
{
/// <summary>
/// Write an HTTP response reflecting the result.
/// </summary>
/// <param name="httpContext">The <see cref="HttpContext"/> for the current request.</param>
/// <returns>A task that represents the asynchronous execute operation.</returns>
Task ExecuteAsync(HttpContext httpContext);
}
}
|