// 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;
using Microsoft.AspNetCore.Mvc.ViewComponents;
namespace Microsoft.AspNetCore.Mvc
{
///
/// Result type of a .
///
public interface IViewComponentResult
{
///
/// Executes the result of a using the specified .
///
/// The for the current component execution.
void Execute(ViewComponentContext context);
///
/// Asynchronously executes the result of a using the specified
/// .
///
/// The for the current component execution.
/// A that represents the asynchronous execution.
Task ExecuteAsync(ViewComponentContext context);
}
}