/// <summary>Creates a <see cref="IViewComponentInvoker"/>.</summary> /// <param name="context">The context</param> /// <returns>A <see cref="IViewComponentInvoker"/>.</returns> public IViewComponentInvoker CreateInstance(ViewComponentContext context) { Requires.IsNotNull(context, nameof(context)); if (this.invoker == null) { this.invoker = this.CreateViewComponentInvoker(context); } return(this.invoker); }
/// <summary>Creates a <see cref="IViewComponentInvoker"/>.</summary> /// <param name="context">The context</param> /// <returns>A <see cref="IViewComponentInvoker"/>.</returns> public IViewComponentInvoker CreateInstance(ViewComponentContext context) { Requires.IsNotNull(context, nameof(context)); if (this.invoker == null) { this.invoker = this.CreateViewComponentInvoker(context); } return this.invoker; }
public WidgetViewComponentInvoker(WidgetContextScope scope, IViewComponentInvoker innerInvoker) { _inner = innerInvoker; _scope = scope; }
/// <summary> /// Creates a new <see cref="ProfilingViewComponentInvoker"/>. /// </summary> /// <param name="defaultViewComponentInvoker">The <see cref="IViewComponentInvoker"/> to wrap.</param> public ProfilingViewComponentInvoker(IViewComponentInvoker defaultViewComponentInvoker) =>