Method on DI service doesn't do anything
Hello, I have a .NET app using Dependency Injection. One of the services I am injecting is a service for handling database insertions etc. Right now I have two methods on this class, one of them works perfectly fine but the other doesn't do anything when called.
This is the method:
And when calling them like this, I only see the debug logs from the second method. The first one doesn't seem to run at all despite being called
8 Replies
Try not using ' using'
how you register _db?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
:stare:
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
what's wrong with blazor DI?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View