// 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; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.Rendering; namespace Microsoft.AspNet.Mvc { public interface IViewComponentHelper { HtmlString Invoke(string name, params object[] args); HtmlString Invoke(Type componentType, params object[] args); void RenderInvoke(string name, params object[] args); void RenderInvoke(Type componentType, params object[] args); Task InvokeAsync(string name, params object[] args); Task InvokeAsync(Type componentType, params object[] args); Task RenderInvokeAsync(string name, params object[] args); Task RenderInvokeAsync(Type componentType, params object[] args); } }