DefaultViewComponentInvoker Class

Default implementation for Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvoker.

Namespace
Microsoft.AspNetCore.Mvc.ViewComponents
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public class DefaultViewComponentInvoker : IViewComponentInvoker
class Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker

Constructors

DefaultViewComponentInvoker(Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentFactory, Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewComponentInvokerCache, System.Diagnostics.DiagnosticSource, Microsoft.Extensions.Logging.ILogger)

Initializes a new instance of Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.

Arguments:
public DefaultViewComponentInvoker(IViewComponentFactory viewComponentFactory, ViewComponentInvokerCache viewComponentInvokerCache, DiagnosticSource diagnosticSource, ILogger logger)

Methods

InvokeAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext)
Return type:System.Threading.Tasks.Task
public Task InvokeAsync(ViewComponentContext context)