Skip to content

Repository files navigation

Multi Client Application Example

Example of Multiple WASM Client in Blazor project.

Description

This application demonstrate the use of Multiple Client Application in a Blazor WASM project.

Each application will running on a different port or host name.
The Blazor Server project, via the Web API controllers, will provide the data for both projects.

From original question by alexsey bobrovitch on Stackoverflow

How to

Select MultiClientApplicationWasmExample.Server as startup method.
The Client WASM applications are both hosted via Blazor Server project.
The first application is hosted via TCP port 5001, the second via TCP port 5002.

Try to switch between the two client application.
You can see that the WeatherForecast controller working as expected from both the client applications.
Take a look to the Route controller configuration.

This project is based on the original documentation from Microsoft: Hosted deployment with multiple Blazor WebAssembly apps

About

Example of Multiple WASM Client in a hosted Blazor project

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages