-
Notifications
You must be signed in to change notification settings - Fork 9.9k
/
IActionInvokerFactory.cs
29 lines (25 loc) · 1.09 KB
/
IActionInvokerFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
using Microsoft.AspNetCore.Mvc.Abstractions;
namespace Microsoft.AspNetCore.Mvc.Infrastructure;
/// <summary>
/// Defines an interface for creating an <see cref="IActionInvoker"/> for the current request.
/// </summary>
/// <remarks>
/// The default <see cref="IActionInvokerFactory"/> implementation creates an <see cref="IActionInvoker"/> by
/// calling into each <see cref="IActionInvokerProvider"/>. See <see cref="IActionInvokerProvider"/> for more
/// details.
/// </remarks>
public interface IActionInvokerFactory
{
/// <summary>
/// Creates an <see cref="IActionInvoker"/> for the current request associated with
/// <paramref name="actionContext"/>.
/// </summary>
/// <param name="actionContext">
/// The <see cref="ActionContext"/> associated with the current request.
/// </param>
/// <returns>An <see cref="IActionInvoker"/> or <c>null</c>.</returns>
IActionInvoker? CreateInvoker(ActionContext actionContext);
}