File: Abstractions\IActionInvoker.cs
Web Access
Project: src\src\Mvc\Mvc.Abstractions\src\Microsoft.AspNetCore.Mvc.Abstractions.csproj (Microsoft.AspNetCore.Mvc.Abstractions)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Mvc.Abstractions;
 
/// <summary>
/// Defines an interface for invoking an MVC action.
/// </summary>
/// <remarks>
/// An <see cref="IActionInvoker"/> is created for each request the MVC handles by querying the set of
/// <see cref="IActionInvokerProvider"/> instances. See <see cref="IActionInvokerProvider"/> for more information.
/// </remarks>
public interface IActionInvoker
{
    /// <summary>
    /// Invokes an MVC action.
    /// </summary>
    /// <returns>A <see cref="Task"/> which will complete when action processing has completed.</returns>
    Task InvokeAsync();
}