3 implementations of IViewComponentResult
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
ViewComponents\ContentViewComponentResult.cs (1)
15public class ContentViewComponentResult : IViewComponentResult
ViewComponents\HtmlContentViewComponentResult.cs (1)
17public class HtmlContentViewComponentResult : IViewComponentResult
ViewComponents\ViewViewComponentResult.cs (1)
18public class ViewViewComponentResult : IViewComponentResult
33 references to IViewComponentResult
BasicWebSite (3)
Components\PassThroughViewComponent.cs (1)
10public IViewComponentResult Invoke(long value)
Components\ViewDataViewComponent.cs (1)
10public IViewComponentResult Invoke() => View();
RequestIdViewComponent.cs (1)
17public IViewComponentResult Invoke()
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\ExecutorFactoryTest.cs (1)
309public IViewComponentResult ViewComponent() => new ViewViewComponentResult();
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
Diagnostics\MvcDiagnostics.cs (3)
79public AfterViewComponentEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IViewComponentResult viewComponentResult, object viewComponent) 98/// The <see cref="IViewComponentResult"/>. 100public IViewComponentResult ViewComponentResult { get; }
MvcViewFeaturesDiagnosticListenerExtensions.cs (2)
43IViewComponentResult result, 53private static void AfterViewComponentImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IViewComponentResult result, object viewComponent)
ViewComponents\ContentViewComponentResult.cs (1)
9/// An <see cref="IViewComponentResult"/> which writes text when executed.
ViewComponents\DefaultViewComponentInvoker.cs (10)
64IViewComponentResult result; 91private async Task<IViewComponentResult> InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) 105if (returnType == typeof(Task<IViewComponentResult>)) 113resultAsObject = await (Task<IViewComponentResult>)task; 140var viewComponentResult = CoerceToViewComponentResult(resultAsObject); 148private IViewComponentResult InvokeSyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) 162var viewComponentResult = CoerceToViewComponentResult(result); 170private static IViewComponentResult CoerceToViewComponentResult(object? value) 177if (value is IViewComponentResult componentResult) 195typeof(IViewComponentResult).Name));
ViewComponents\HtmlContentViewComponentResult.cs (1)
11/// An <see cref="IViewComponentResult"/> which writes an <see cref="IHtmlContent"/> when executed.
ViewComponents\ViewViewComponentResult.cs (1)
16/// A <see cref="IViewComponentResult"/> that renders a partial view when executed.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (8)
86public IViewComponentResult Invoke() => null; 88public IViewComponentResult Invoke(int a) => null; 97private IViewComponentResult Invoke() => null; 102protected Task<IViewComponentResult> InvokeAsync() => null; 107public Task<IViewComponentResult> InvokeAsync(string a) => null; 109public Task<IViewComponentResult> InvokeAsync(int a) => null; 111public Task<IViewComponentResult> InvokeAsync(int a, int b) => null; 116public Task<IViewComponentResult> InvokeAsync(string a) => null;
ViewComponents\DefaultViewComponentHelperTest.cs (3)
163public IViewComponentResult Invoke(int a) => null; 168public IViewComponentResult Invoke(int a, string b) => null; 173public IViewComponentResult Invoke(object o) => null;