File: ServerReliability\ThrowingRenderComponent.cs | Web Access |
Project: src\src\Components\test\testassets\BasicTestApp\BasicTestApp.csproj (BasicTestApp) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Components; namespace BasicTestApp.ServerReliability; public class ThrowingRenderComponent : IComponent { public void Attach(RenderHandle renderHandle) { renderHandle.Render(builder => { throw new InvalidTimeZoneException(); }); } public Task SetParametersAsync(ParameterView parameters) { return Task.CompletedTask; } } |