blob: ab310bf2d494e7861e5227cdd1835fe590ffa51b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Net.Http;
namespace System.Web.Http.Controllers
{
/// <summary>
/// A contract for a conversion routine that can take the result of an action returned from
/// <see cref="HttpActionDescriptor.ExecuteAsync(HttpControllerContext, IDictionary{string, object})"/>
/// and convert it to an instance of <see cref="HttpResponseMessage"/>.
/// </summary>
public interface IActionResultConverter
{
HttpResponseMessage Convert(HttpControllerContext controllerContext, object actionResult);
}
}
|