PeakSWC.RemoteWebViewService
10.0.15.3
See the version list below for details.
dotnet tool install --global PeakSWC.RemoteWebViewService --version 10.0.15.3
dotnet new tool-manifest
dotnet tool install --local PeakSWC.RemoteWebViewService --version 10.0.15.3
#tool dotnet:?package=PeakSWC.RemoteWebViewService&version=10.0.15.3
nuke :add-package PeakSWC.RemoteWebViewService --version 10.0.15.3
RemoteBlazorWebView.Wpf.BlazorWebView
RemoteBlazorWebView.Wpf.BlazorWebView is a powerful control based on the .NET 9 Blazor WebView Control for WPF applications. It allows you to interact with the user interface of a program developed using the BlazorWebView WPF control through a web browser by leveraging a cloud-based server.
The RemoteBlazorWebView.Wpf.BlazorWebView control facilitates remote interaction with your application's user interface by setting up a server (RemoteWebViewService) in the cloud and connecting your browser to it.
As a drop-in replacement for the Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView control, RemoteBlazorWebView.Wpf requires only minimal changes to your existing application to enable remote control capabilities. This makes it an efficient and convenient solution for extending your application's functionality.
RemoteBlazorWebView.WindowsForms.BlazorWebView
RemoteBlazorWebView.WindowsForms.BlazorWebView is a robust control built on the .NET 9 Blazor WebView WinForms Control, designed for Windows Forms applications. It allows you to engage with the user interface of a program created using the BlazorWebView WinForms control through a web browser, utilizing a cloud-based server.
The RemoteBlazorWebView.WindowsForms.BlazorWebView control enables remote interaction with your application's user interface by establishing a server (RemoteWebViewService) in the cloud and directing your browser to connect with it.
As a seamless replacement for the Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView control, RemoteBlazorWebView.WindowsForms.BlazorWebView necessitates only minimal adjustments to your current application to empower remote control capabilities. This makes it an effective and user-friendly option for enhancing your application's features.
Demo Video
![]()
Usage instructions
You do not need to build this repo unless you want to customize the RemoteWebViewService. Run the following command to install the RemoteWebViewService
dotnet tool update -g PeakSWC.RemoteWebViewService --version 9.*-*
Switching between local and remote
Mark the window with [RemoteBlazor(nameof(MyBlazorWebView), ...)] and call the generated InitializeRemoteBlazor() after InitializeComponent(); see the source generator's README.
Sharing control (owner, remote user, viewers)
A session can be shared between the person at the machine and a remote user, with control handed back and forth.
Roles. A session supports exactly these participants:
| Role | How they join | What they can do |
|---|---|---|
| Owner (one) | The app's own window shows the controlling page /app/<id>?role=owner (BlazorWebView.NavigateToUrl). |
Starts in control. Can give control to the remote user and can always take it back. |
| Remote user (one) | Opens the read-only link /mirror/<id> (requires EnableMirrors). The remote user is the first non-owner connection in the session. |
Watches until the owner gives control; then drives the app and can give control back. Gets the remote user's end of the voice call when voice is on. |
| Viewers (any number) | Open the same /mirror/<id> link after the remote user. |
Read-only. They are never given control, cannot take it, and have no voice. |
Only one connection controls the app at a time; the relay ignores input from everyone else, and control is never given to a second remote user. If the remote user leaves, the next-oldest viewer becomes the remote user. If the connection in control closes, control returns to the owner while the owner is connected; otherwise the session ends.
Supervised or unattended. By default a session is supervised: the owner starts in control and decides when to give it. Add &control=remote to the owner's page address (/app/<id>?role=owner&control=remote) for an unattended session: the remote user is given control as soon as they join, and the owner can still take it back. The app chooses, so its users can pick the policy that suits them.
Session controls bar (opt-in). Nothing is drawn on your pages unless you ask. There are three ways to go:
No bar. Leave the placeholder out. The session still works; with
ShareControlthere are then no buttons to hand control over (use an unattended session, or draw your own). The same goes for voice: withEnableVoiceand no placeholder there are no call buttons on either side, so nobody can start or answer a call, and the browser console says so. Add the placeholder, or draw your own fromwindow.RemoteVoice.The built-in bar. Put an empty
<div id="rbwv-session-controls" data-share-link="true"></div>in your layout where the bar should sit. Each browser draws its own bar over it (status, Give control / Take control, Copy link for the owner, voice buttons).data-restart="true"adds Restart app;data-host-name/data-remote-namerename the two parties ("The host", "Remote user"), for exampledata-remote-name="The technician". Restyle with therbwv-control-*/rbwv-voice-*classes.Your own bar. Put a
<template>inside the placeholder and mark its elements withdata-rbwv. Each browser gets a copy with only the parts that apply to it; the status is filled in and the buttons are wired. Layout, wording, classes and icons are yours:<div id="rbwv-session-controls"> <template> <span data-rbwv="dot"></span> <strong data-rbwv="status" data-text-you="You are driving"></strong> <button class="my-btn" data-rbwv="give">Hand over</button> <button class="my-btn" data-rbwv="take">Take back</button> <button class="my-btn" data-rbwv="copy-link" data-copied-text="Copied!">Invite</button> </template> </div>Parts:
dot,status,give,take,copy-link,restart(with optionalrestart-question,restart-confirm,restart-cancelfor a confirmation step),voice-status,voice-act,voice-mute,voice-end. On the status elementdata-text-you,data-text-view-only,data-text-none,data-text-switchinganddata-text-restartingreplace the wording. A part left empty gets the built-in wording.
Put the placeholder in your layout, not on one page, or the bar goes away when the user navigates. It only shows when there is something to control: a session with an owner, or a voice call. A dot is lit while anyone is connected remotely; hovering over it says how many. For anything the template cannot do, window.RemoteControl (and window.RemoteVoice) expose the same state and actions to your own script; draw that in JavaScript above the page (not as a Blazor component: the app renders once for every browser, and clicks from whoever does not have control are dropped).
Restart button. Add data-restart="true" to the placeholder to give whoever has control (and the owner, always) a Restart app button, with a confirm step. The relay sends the app the same Refreshed event a browser refresh raises, so an app that restarts itself there needs nothing else; every browser page then waits for the new copy and loads again by itself. The button never appears without the placeholder.
With the source generator. [RemoteBlazor(nameof(RemoteBlazorWebView), ShareControl = true)] (or Unattended = true) generates this setup; see the generator's README.
Upgrade the relay and the packages together. Sharing control needs relay and packages 10.0.15 or later on both sides. With an older relay the Give control / Take control buttons do nothing. An app on older packages keeps working against a 10.0.15 relay.
Remote components. A remote component's frame follows the page it is on: it is usable in the browser that controls the app and read-only in the others, and moves with control. Viewers always see it read-only.
Sign-in on the relay
By default the relay asks nobody to sign in: a session's pages open for anyone who has the link. The
Authorization:Provider setting (environment variable Authorization__Provider) chooses otherwise:
| Provider | What it does |
|---|---|
None (default) |
No sign-in. |
AzureB2C |
Azure AD B2C sign-in (settings: the AzureAdB2C section and Secret). In every relay build except the native one (-c NoAuthorization). A relay built with -c Authorization uses it without the setting. |
RemoteTicket |
Signed tickets from a separate account host. Not part of the native relay. Set RelayTicket:SigningKey (environment RELAY_TICKET_SECRET), RelayTicket:AuthorityUrl, and RelayTicket:LoginUrl. The ticket is the rwv-relay-ticket cookie or the x-relay-ticket header. /mirror without a valid ticket redirects to the login URL. |
Fake |
For tests: the request names its user as name;group1,group2 in the X-Rbwv-Fake-User header, the fake-user query value or the rbwv-fake-user cookie. The relay refuses to start with it outside the Development environment. |
With sign-in on, a session's pages (/app, /mirror, /<id>, /status, /wait) open for a signed-in user whose groups
include the session's Group, and for the app's own window, which needs no account: it opens its page with the owner key
(below). Each connection's signed-in name is in the roster. A relay hosted in-process takes a provider directly:
RemoteWebViewServerOptions.Authorization. A provider is an IRelayAuthorization. Shop accounts are hosted separately. This relay does not render shop pages. When RemoteTicket is configured it accepts signed tickets and asks that host which groups are active.
Owner key. With ShareControl, the app makes a secret for the session (OwnerKey) and opens its own page as
/app/<id>?role=owner&key=<key>. Only that page is the owner; ?role=owner added to any other link is ignored.
ParticipantsChanged on the control reports who is in the session, their names and who has control.
Connection keys. Every browser in a session is sent the connection ids of the others, so that control can be handed over. An id therefore proves nothing: each page also picks a secret key, sends it with its own requests, and the relay accepts input, a hand-over or a restart from a connection only with that connection's key. Nothing to configure. An app built with packages from before keys existed sends none and works as before, without this protection.
Samples
Check out the tutorial at https://github.com/budcribar/RemoteBlazorWebViewTutorial
Fast tests
The FileSync desktop and tutorial Playwright classes are marked [Trait("Category", "Slow")]. A normal dotnet test still runs them. To skip only that suite:
dotnet test --filter Category!=Slow
dotnet build src/RemoteWebViewService/RemoteWebViewService.csproj -c NoAuthorization
Category!=Slow keeps the relay and embedded-server tests, agent registry and hub tests, RemoteTicket tests, and the FileSync headless classes (FileFetchingTests, ClientCachingTests, ServerCachingTests, ConcurrentRequestsTests, LoadTest, PerformanceTests, TestMisc). On Windows, .\RunTests.ps1 -Fast does the same and checks that the NoAuthorization build does not reference Shop Identity, SQLite, or RemoteTicket.
Pushes to net10 still run the full Windows desktop and tutorial step and the performance regression workflow. An on-demand run is .github/workflows/fast-tests.yml (workflow_dispatch only).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0 | 169 | 11/11/2026 |
| 11.0.0-rc2 | 116 | 10/25/2026 |
| 10.0.15.3 | 52 | 11/23/2026 |
| 10.0.15.2 | 78 | 11/20/2026 |
| 10.0.15.1 | 176 | 11/11/2026 |
| 10.0.14 | 154 | 11/8/2026 |
| 10.0.13 | 267 | 10/19/2026 |
| 10.0.0-preview5 | 451 | 6/14/2025 |
| 10.0.0-preview4 | 451 | 5/14/2025 |
| 10.0.0-preview3 | 443 | 4/12/2025 |
| 9.0.23 | 190 | 11/13/2026 |
| 9.0.22 | 202 | 11/6/2026 |
| 9.0.21 | 209 | 10/15/2026 |
| 9.0.6 | 644 | 6/15/2025 |
| 9.0.5 | 672 | 5/14/2025 |
| 9.0.4 | 656 | 4/12/2025 |
| 9.0.2 | 655 | 2/16/2025 |
| 9.0.1 | 889 | 1/18/2025 |
| 8.0.11 | 1,028 | 11/14/2024 |
Based on maui 10.0.15.3
Changes since 10.0.14
Bump to 10.0.15.3 with release notes
Merge pull request #114 from budcribar/fix/anycpu-packages
Emit AnyCPU IL for source generators and NuGet library packages
Merge pull request #113 from budcribar/security/remaining-review-fixes
Relay: keep a waiting session entry until its last waiter leaves
Harden relay against remaining security review findings (F1, F5, F6, F8, F9)
Merge pull request #112 from budcribar/claude/project-thread-l4oiwa
Relay: the admin site's service ticket may use the metrics calls
Relay: pass scheduled metrics from agents to Admin
Merge pull request #111 from budcribar/claude/project-thread-w37cul
Merge pull request #110 from budcribar/claude/project-thread-dzkzt6
Give control of agent-started sessions to the user who asked for them
Relay: gRPC error details only in Development, add HSTS
Merge pull request #109 from budcribar/claude/project-thread-pm2nrz
Merge pull request #107 from budcribar/agent-tokens-and-ticket-headers
Accept a newly issued agent token over the remembered one
Add per-agent token binding, ticket role claims, and header/cookie-only ticket reading
Merge pull request #105 from budcribar/claude/project-thread-9is2oo
Merge remote-tracking branch 'origin/net10' into claude/project-thread-9is2oo
Merge pull request #106 from budcribar/claude/project-thread-q0tq2b
Merge pull request #104 from budcribar/claude/project-thread-bf73xe
Apply session sign-in rules to the relay's gRPC calls
Relay: list clients and groups for the signed-in caller
Require a configured RelayTicket signing key of at least 32 bytes
Merge pull request #103 from budcribar/claude/project-thread-24nqqb
Refuse RPCD updates without an admin key and carry the installer log
Merge pull request #102 from budcribar/cursor/forward-update-rpcd-a474
Forward remote RPCD updates from Admin to the fleet agent
Merge pull request #100 from budcribar/claude/project-thread-ghzw1f
Merge pull request #101 from budcribar/claude/project-thread-izqv9b
Log why the relay refused an agent's enrollment key
Photino: fire ReadyToConnect only after WebView2 has started
CI: give manual and release runs a concurrency group of their own
Windows tests: warm up every tutorial build, not only Photino
Windows tests: warm up all three Photino tutorial builds
Tests: wait for the WebView2 page after the DevTools connect
Windows tests: warm up Chrome before the EndToEnd suite
Windows tests: warm up the shards' first browser and WebView2 starts
Windows tests: run the desktop tests as parallel shards
Merge pull request #99 from budcribar/claude/project-thread-kfekiw
Pass the PC's boot time from the agent to Admin
Merge pull request #98 from budcribar/claude/project-thread-xv5i5s
Refuse GetIds on a relay that requires sign-in
Merge pull request #97 from budcribar/claude/project-thread-89es12
Mirror: wait for the WebView before showing the mirror on connect
Tests: say which session is short when the relay's file totals don't match
Merge pull request #96 from budcribar/claude/project-thread-89es12
Bump to 10.0.15.2 with release notes
Merge pull request #90 from budcribar/claude/project-thread-i544zb
Merge pull request #91 from budcribar/claude/project-thread-89es12
Merge pull request #94 from budcribar/claude/project-thread-wg41g7
Set-RailwayAgentKeys: create its link folder under -WhatIf too
Merge pull request #95 from budcribar/claude/project-thread-mj8jra
Set-RailwayAgentKeys: define a function when dot-sourced, link the relay project itself
Relay: send non-owner browsers in shared sessions to the mirror, log page requests
Relay: an EndSession is an expected disconnect, and keeps the requester label
Add scripts/Set-RailwayAgentKeys.ps1 to set the relay's enrollment keys on Railway
AgentHub: add ReleaseAvailableCommand broadcast and AgentAdmin.PublishRelease RPC
Full list: https://github.com/budcribar/RemoteBlazorWebView/compare/10.0.14...b5756b88971ab46b06600ec3edf9d95d074ff078