© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
16 replies
TotechsStrypper

❔ Services collection life time

Hi guys, is it possible to register some services later when the application up and running ?

I stuck into a scenario like this


I have WPF or MAUI application that use signalR for realtime communication, the problem is the application requirement doesn't want to force users to login to connect to the signalR hub, they can do it later.

And this is where the problem happen, if you register signalR when you boot up the app it will lack all the information about that user needed to connect to the hub because many scenarios users don't want to login first but they can do that when they want to

This question is not about SignalR it's about the life time of registering services to ServiceCollection.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Observable collection
C#CC# / help
4y ago
❔ Services communication in Windows Services
C#CC# / help
3y ago
NATS Client timeouts all the time
C#CC# / help
4y ago
Modified collection (IsoDayOfWeek noda time enum) not being persisted upon SaveChanges
C#CC# / help
3y ago