+
Error
+
An error occurred while processing your request.
+
+ @if (string.IsNullOrEmpty(RequestId) is false)
+ {
+
Request ID: @RequestId
+ }
+
+
Back to home
+
+
+@code {
+ [CascadingParameter] private HttpContext? HttpContext { get; set; }
+
+ private string? RequestId { get; set; }
+
+ protected override void OnInitialized() =>
+ RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
+}
diff --git a/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Components/_Imports.razor b/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Components/_Imports.razor
new file mode 100644
index 0000000000..62caad6ade
--- /dev/null
+++ b/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Components/_Imports.razor
@@ -0,0 +1,13 @@
+@using System.Net.Http
+@using System.Net.Http.Json
+@using Microsoft.AspNetCore.Components.Forms
+@using Microsoft.AspNetCore.Components.Routing
+@using Microsoft.AspNetCore.Components.Web
+@using static Microsoft.AspNetCore.Components.Web.RenderMode
+@using Microsoft.AspNetCore.Components.Web.Virtualization
+@using Microsoft.JSInterop
+@using Bit.Brouter
+@using Bit.Brouter.Demos.Core
+@using Bit.Brouter.Demos.Core.Pages
+@using Bit.Brouter.Demos.Core.Shared
+@using Bit.Brouter.Demos.Auto.Client.Components
diff --git a/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Program.cs b/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Program.cs
new file mode 100644
index 0000000000..e97e61764f
--- /dev/null
+++ b/src/Brouter/InteralDemos/Auto/Bit.Brouter.Demos.Auto/Program.cs
@@ -0,0 +1,33 @@
+using Bit.Brouter.Demos.Auto.Components;
+
+var builder = WebApplication.CreateBuilder(args);
+
+builder.Services.AddRazorComponents()
+ .AddInteractiveServerComponents()
+ .AddInteractiveWebAssemblyComponents();
+
+builder.Services.AddCoreServices();
+
+var app = builder.Build();
+
+if (app.Environment.IsDevelopment())
+{
+ app.UseWebAssemblyDebugging();
+}
+else
+{
+ app.UseExceptionHandler("/Error", createScopeForErrors: true);
+ app.UseHsts();
+}
+
+app.UseHttpsRedirection();
+app.UseAntiforgery();
+
+app.MapStaticAssets();
+
+app.MapRazorComponents