// 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.Threading.Tasks;
namespace Microsoft.AspNetCore.Mvc.ViewComponents
{
///
/// Specifies the contract for execution of a view component.
///
public interface IViewComponentInvoker
{
///
/// Executes the view component specified by
/// of and writes the result to .
///
/// The .
/// A that represents the asynchronous operation of execution.
Task InvokeAsync(ViewComponentContext context);
}
}