1 type derived from RazorComponentResult
Microsoft.AspNetCore.Components.Endpoints (1)
Results\RazorComponentResultOfT.cs (1)
14: RazorComponentResult where TComponent: IComponent
12 instantiations of RazorComponentResult
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
RazorComponentResultTest.cs (12)
28Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(SimpleComponent), (object)null)); 29Assert.Throws<ArgumentNullException>(() => new RazorComponentResult(typeof(SimpleComponent), null)); 36var result = new RazorComponentResult(typeof(SimpleComponent), paramsDict); 45var result = new RazorComponentResult(typeof(SimpleComponent), new { Param1 = 123, Param2 = "Another" }); 217await new RazorComponentResult(typeof(ComponentWithLayout)).ExecuteAsync(httpContext); 230await new RazorComponentResult(typeof(ComponentThatRedirectsSynchronously)).ExecuteAsync(httpContext); 247var result = new RazorComponentResult(typeof(StreamingComponentThatRedirectsAsynchronously)) 267await new RazorComponentResult(typeof(StreamingComponentThatRedirectsAsynchronously)).ExecuteAsync(httpContext); 287new RazorComponentResult(typeof(ComponentThatThrowsSynchronously)).ExecuteAsync(httpContext)); 301() => new RazorComponentResult(typeof(StreamingComponentThatThrowsAsynchronously)) { PreventStreamingRendering = true } 324() => new RazorComponentResult(typeof(StreamingComponentThatThrowsAsynchronously)) 431var 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)
22public 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)
36var result = new RazorComponentResult(typeof(SimpleComponent), paramsDict); 45var result = new RazorComponentResult(typeof(SimpleComponent), new { Param1 = 123, Param2 = "Another" }); 101var result = new RazorComponentResult(typeof(StreamingAsyncLoadingComponent), 132var result = new RazorComponentResult(typeof(DoubleRenderingStreamingAsyncComponent), 163var result = new RazorComponentResult(typeof(StreamingComponentWithChild), 191var result = new RazorComponentResult(typeof(StreamingAsyncLoadingComponent), 247var result = new RazorComponentResult(typeof(StreamingComponentThatRedirectsAsynchronously)) 431var result = new RazorComponentResult(typeof(VaryStreamingScenarios), parameters);