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