1 type derived from RazorComponentResult
Microsoft.AspNetCore.Components.Endpoints (1)
Results\RazorComponentResultOfT.cs (1)
14
:
RazorComponentResult
where TComponent: IComponent
16 instantiations of RazorComponentResult
Microsoft.AspNetCore.Components.Endpoints.Tests (16)
RazorComponentResultTest.cs (16)
28
Assert.Throws<ArgumentNullException>(() => new
RazorComponentResult
(typeof(SimpleComponent), (object)null));
29
Assert.Throws<ArgumentNullException>(() => new
RazorComponentResult
(typeof(SimpleComponent), null));
36
var result = new
RazorComponentResult
(typeof(SimpleComponent), paramsDict);
45
var result = new
RazorComponentResult
(typeof(SimpleComponent), new { Param1 = 123, Param2 = "Another" });
101
var result = new
RazorComponentResult
(typeof(StreamingAsyncLoadingComponent),
132
var result = new
RazorComponentResult
(typeof(DoubleRenderingStreamingAsyncComponent),
163
var result = new
RazorComponentResult
(typeof(StreamingComponentWithChild),
191
var result = new
RazorComponentResult
(typeof(StreamingAsyncLoadingComponent),
217
await new
RazorComponentResult
(typeof(ComponentWithLayout)).ExecuteAsync(httpContext);
230
await new
RazorComponentResult
(typeof(ComponentThatRedirectsSynchronously)).ExecuteAsync(httpContext);
247
var result = new
RazorComponentResult
(typeof(StreamingComponentThatRedirectsAsynchronously))
267
await new
RazorComponentResult
(typeof(StreamingComponentThatRedirectsAsynchronously)).ExecuteAsync(httpContext);
287
new
RazorComponentResult
(typeof(ComponentThatThrowsSynchronously)).ExecuteAsync(httpContext));
301
() => new
RazorComponentResult
(typeof(StreamingComponentThatThrowsAsynchronously)) { PreventStreamingRendering = true }
324
() => new
RazorComponentResult
(typeof(StreamingComponentThatThrowsAsynchronously))
431
var result = new
RazorComponentResult
(typeof(VaryStreamingScenarios), parameters);
15 references to RazorComponentResult
Microsoft.AspNetCore.Components.Endpoints (7)
Results\RazorComponentResult.cs (3)
22
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
31
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
43
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
Results\RazorComponentResultExecutor.cs (1)
22
public static Task ExecuteAsync(HttpContext httpContext,
RazorComponentResult
result)
Results\RazorComponentResultOfT.cs (3)
17
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
24
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
33
/// Constructs an instance of <see cref="
RazorComponentResult
"/>.
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
RazorComponentResultTest.cs (8)
36
var
result = new RazorComponentResult(typeof(SimpleComponent), paramsDict);
45
var
result = new RazorComponentResult(typeof(SimpleComponent), new { Param1 = 123, Param2 = "Another" });
101
var
result = new RazorComponentResult(typeof(StreamingAsyncLoadingComponent),
132
var
result = new RazorComponentResult(typeof(DoubleRenderingStreamingAsyncComponent),
163
var
result = new RazorComponentResult(typeof(StreamingComponentWithChild),
191
var
result = new RazorComponentResult(typeof(StreamingAsyncLoadingComponent),
247
var
result = new RazorComponentResult(typeof(StreamingComponentThatRedirectsAsynchronously))
431
var
result = new RazorComponentResult(typeof(VaryStreamingScenarios), parameters);