1 implementation of IViewComponentHelper
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentHelper.cs (1)
19public class DefaultViewComponentHelper : IViewComponentHelper, IViewContextAware
27 references to IViewComponentHelper
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
492public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } 514public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
Microsoft.AspNetCore.Mvc.ViewFeatures (14)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
182services.TryAddTransient<IViewComponentHelper, DefaultViewComponentHelper>();
Rendering\ViewComponentHelperExtensions.cs (9)
11/// Extension methods for <see cref="IViewComponentHelper"/>. 18/// <param name="helper">The <see cref="IViewComponentHelper"/>.</param> 22public static Task<IHtmlContent> InvokeAsync(this IViewComponentHelper helper, string name) 32/// <param name="helper">The <see cref="IViewComponentHelper"/>.</param> 36public static Task<IHtmlContent> InvokeAsync(this IViewComponentHelper helper, Type componentType) 46/// <param name="helper">The <see cref="IViewComponentHelper"/>.</param> 51public static Task<IHtmlContent> InvokeAsync<TComponent>(this IViewComponentHelper helper, object? arguments) 61/// <param name="helper">The <see cref="IViewComponentHelper"/>.</param> 65public static Task<IHtmlContent> InvokeAsync<TComponent>(this IViewComponentHelper helper)
ViewComponentResultExecutor.cs (3)
113var viewComponentHelper = context.HttpContext.RequestServices.GetRequiredService<IViewComponentHelper>(); 142private static Task<IHtmlContent> GetViewComponentResult(IViewComponentHelper viewComponentHelper, ILogger logger, ViewComponentResult result)
ViewComponents\DefaultViewComponentHelper.cs (1)
17/// Default implementation for <see cref="IViewComponentHelper"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Rendering\DefaultTemplatesUtilities.cs (1)
272.AddSingleton(Mock.Of<IViewComponentHelper>())
ViewComponentResultTest.cs (7)
410var helper = Mock.Of<IViewComponentHelper>(h => h.InvokeAsync(It.IsAny<Type>(), It.IsAny<object>()) == result); 414services.AddSingleton<IViewComponentHelper>(helper); 452var helper = Mock.Of<IViewComponentHelper>(h => h.InvokeAsync(It.IsAny<Type>(), It.IsAny<object>()) == result); 456services.AddSingleton<IViewComponentHelper>(helper); 665services.AddTransient<IViewComponentHelper, DefaultViewComponentHelper>();
RazorBuildWebSite.Views (3)
Pages\Rzc\Page.cs (1)
32public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
Views\Common\CommonView.cs (1)
32public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
Views\Rzc\View.cs (1)
32public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }