dotnet / dotnet/maui-samples

[Request] App Lifecycle Events with MVVM and/or SignalR connections

Open
#274 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I am searching for an example/best practice of handling application lifecycle events in ViewModels to control for example SignalR connections.

I want to do something like close SignalR connection on ```Stopped``` Event and reconnect on ```Resumed``` Event.

My usecase is a Dashboard App with some different ContentViews each showing values from different areas. Each area has it's own View, ViewModel, Model

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with issue #274's request for application lifecycle handling in ViewModels, especially the Stopped and Resumed events and SignalR connections. Determine the appropriate existing sample entry point, then define a minimal MVVM example whose completed behavior demonstrates closing on Stopped and reconnecting on Resumed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.