chore(chat-signalr): modernize signalr sample setup#911
Open
chore(chat-signalr): modernize signalr sample setup#911
Conversation
Update ChatSignalR sample to align with current SignalR guidance: - migrate service hosting to minimal API in Program.cs - remove obsolete Startup.cs - standardize hub endpoint to /chatHub across clients - refresh README links and quick-start instructions
There was a problem hiding this comment.
Pull request overview
Modernizes the UI/ChatSignalR sample’s SignalR server hosting and aligns all clients/docs on a single hub endpoint to reduce setup friction and follow current ASP.NET Core guidance.
Changes:
- Migrated
UnoChat.ServicefromStartup.cshosting to minimal API inProgram.csand removedStartup.cs. - Standardized hub endpoint casing/path to
https://localhost:7167/chatHubacross Uno and console clients. - Refreshed
UI/ChatSignalR/README.mdquick-start steps and links.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| UI/ChatSignalR/src/UnoChat/Presentation/ViewModel.cs | Updates the Uno client’s SignalR hub URL to the standardized /chatHub endpoint. |
| UI/ChatSignalR/src/UnoChat.Service/Startup.cs | Removes legacy Startup-based hosting configuration. |
| UI/ChatSignalR/src/UnoChat.Service/Program.cs | Introduces minimal API hosting, CORS policy, and maps the hub endpoint. |
| UI/ChatSignalR/src/UnoChat.Client.Console/Program.cs | Updates the console client’s SignalR hub URL to the standardized /chatHub endpoint. |
| UI/ChatSignalR/README.md | Updates documentation and quick-start commands to match the new setup and endpoint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
rajamatt
approved these changes
Mar 9, 2026
Contributor
|
Build is failing because CI is running on net9.0, but this project is on net8.0. I see we still have some net8.0 samples in Uno.Samples, but I think CI would fail when opening PRs for them. |
Author
|
@agneszitte can you help? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernizes the official
UI/ChatSignalRsample to align with the updated SignalR guidance and reduce onboarding confusion around server/client setup.What changed
UnoChat.Servicehosting fromStartup.csto minimal API inProgram.csStartup.cshttps://localhost:7167/chatHubacross:UnoChat/Presentation/ViewModel.cs)UnoChat.Client.Console/Program.cs)UI/ChatSignalR/README.mdwith current docs links and quick-start stepsValidation
dotnet build UI/ChatSignalR/src/UnoChat.Service/UnoChat.Service.csprojdotnet build UI/ChatSignalR/src/UnoChat.Client.Console/UnoChat.Client.Console.csprojRelated to unoplatform/uno#22607
Fixes #910