© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
12 replies
VeQox

✅ asp.net background service with database

Im trying to make a background task which has a nats connection listening for incoming messages.

When a message is received i want to add it to the database but with DI i cannot inject it.

How can i work arround this?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Database In ASP.Net Core
C#CC# / help
14mo ago
✅ Blazor / ASP.NET - @inject keyed service
C#CC# / help
2y ago
ASP.NET: Elegant controller <-> service interaction
C#CC# / help
2y ago
WCF Connected Service ASP NET Core
C#CC# / help
4y ago