What a senior .NET engineer needs to know about the frontend: web basics and the browser, integrating SPAs (React, Angular) securely with ASP.NET Core APIs, and building UIs with Blazor in .NET 10.
-
Implement the backend-for-frontend (BFF) pattern for a React SPA in ASP.NET Core. Show the cookie and OpenID Connect setup, how tokens are stored and refreshed server-side, how YARP forwards /api calls to the downstream API with the access token attached, how you protect against CSRF, and how login, logout and a 'who am I' endpoint work for the SPA.
A hand-rolled BFF in .NET 10: cookie + OpenID Connect authentication with SaveTokens, server-side token refresh, YARP forwarding with a bearer-token transform, custom-header CSRF protection, and login, logout and user endpoints for a React SPA.
Senior
Coding
SPA Integration
Β· π 3 follow-ups Β· π 1 real-world
-
Your React frontend and ASP.NET Core API are maintained by different people, and DTO changes keep breaking the UI in production. How would you set up a contract pipeline: generating the OpenAPI document at build time in .NET 10, generating a typed TypeScript client from it, catching breaking changes in CI, and deciding what is allowed to change without a new API version?
A contract-first workflow between ASP.NET Core and a TypeScript frontend: build-time OpenAPI generation in .NET 10, choosing a TypeScript generator (openapi-typescript, Orval, NSwag, Kiota), committing and diffing the spec, breaking-change detection in CI, and evolution rules for DTOs.
Mid-Level
Theory
SPA Integration
Β· π 3 follow-ups Β· π 1 real-world
-
Your organisation is starting a new internal line-of-business application, and the .NET team must choose between React, Angular and Blazor. How would you make and document that decision? Which criteria matter (team skills, hiring, hosting and render model, security, performance, long-term maintenance), what would you recommend in which situations, and how would you reduce the risk of choosing wrong?
An architecture decision between React, Angular and Blazor for a .NET line-of-business app: weighted criteria, team and hiring realities in Australia, Blazor render modes vs SPA hosting, security and offline needs, a time-boxed spike, and recording the outcome in an ADR.
Senior
Architecture
SPA Integration
Β· π 3 follow-ups Β· π 1 real-world
-
What are the render modes in a Blazor Web App in .NET 10? Explain static server-side rendering, Interactive Server, Interactive WebAssembly and Interactive Auto, where the code actually runs in each, and how you would choose between them.
Covers the four Blazor Web App render modes (static SSR, Interactive Server, Interactive WebAssembly, Interactive Auto), where code runs, prerendering, how modes are applied, and the trade-offs that drive the choice.
Junior
Theory
Blazor
Β· π 3 follow-ups
-
Walk me through how a Blazor component works. How do parameters, EventCallback and cascading parameters pass data, what is the order of the lifecycle methods, when does a component re-render, and when do you need to call StateHasChanged yourself?
Covers Blazor component parameters, EventCallback, ChildContent and cascading parameters, the lifecycle order (SetParametersAsync, OnInitialized, OnParametersSet, OnAfterRender, Dispose), the render cycle and when StateHasChanged is needed.
Intermediate
Theory
Blazor
Β· π 2 follow-ups
-
Show me how you build a form with validation in Blazor in .NET 10. Use EditForm with DataAnnotations, add a custom rule, validate nested objects, submit to an ASP.NET Core API and show the server's validation errors next to the right fields. How does it differ when the form is rendered with static SSR?
Covers Blazor EditForm and EditContext, DataAnnotationsValidator, input components, custom validation attributes, .NET 10 nested validation, mapping ProblemDetails errors with ValidationMessageStore, and SSR forms with FormName, SupplyParameterFromForm and antiforgery.
Intermediate
Coding
Blazor
Β· π 3 follow-ups
-
How do routing and navigation work in Blazor? Explain @page route templates and constraints, the Router component, NavigationManager and query-string parameters, how to stop users losing unsaved changes, and what enhanced navigation does in a Blazor Web App compared with interactive client-side routing.
Covers Blazor routing (@page templates, constraints, catch-all, Router and NotFoundPage), NavigationManager (NavigateTo, NotFound, LocationChanged), SupplyParameterFromQuery, NavigationLock, and enhanced navigation versus interactive routing in .NET 10 Blazor Web Apps.
Mid-Level
Theory
Blazor
Β· π 3 follow-ups Β· π 1 real-world
-
Show me how JavaScript interop works in Blazor. How do you call a JavaScript module from .NET and call .NET from JavaScript, why must interop wait until after the first render, how do you avoid memory leaks with DotNetObjectReference and IJSObjectReference, and what changes between Server and WebAssembly?
Covers Blazor JS interop with IJSRuntime, collocated JS modules and IJSObjectReference, JSInvokable and DotNetObjectReference callbacks, ElementReference, OnAfterRenderAsync and prerendering, disposal and JSDisconnectedException, and Server vs WebAssembly differences.
Mid-Level
Coding
Blazor
Β· π 3 follow-ups Β· π 1 real-world
-
How do you manage state in a Blazor Web App? Explain component state, cascading values, scoped services and what 'scoped' means per circuit versus per request, browser storage, and how .NET 10 persists state across prerendering, enhanced navigation and lost circuits. What must never go in a singleton?
Covers Blazor state: component fields, cascading values (including root-level AddCascadingValue), scoped state services per circuit or per WASM app, URL and browser storage (ProtectedSessionStorage), [PersistentState] for prerendering and enhanced navigation, circuit state persistence in .NET 10, and the singleton data-leak risk.
Mid-Level
Theory
Blazor
Β· π 3 follow-ups Β· π 1 real-world
-
Your Blazor Server app works well in testing, but on Monday morning with about 2,000 users it slows down, memory climbs, users see 'Attempting to reconnect' and some lose their work. How do you diagnose it? Cover circuits and memory per user, WebSockets and sticky sessions, SignalR limits and Azure SignalR Service, and what you change in the app.
Covers diagnosing Blazor Server under load: circuit memory and leaks, scoped DbContext, blocking calls, WebSockets and long polling, sticky sessions, circuit options and SignalR limits, Azure SignalR Service, .NET 10 circuit metrics, and moving pages to static SSR or WebAssembly.
Senior
Debugging
Blazor
Β· π 3 follow-ups Β· π 1 real-world