BlackBearFTW
Explore posts from serversApiFactory not being able to retrieve ApplicationDbContext
Hi I am currently writting an ApiFactory for my integration tests, however when I run my integration tests I get an error that the ServiceProvider was unable to retrieve the
ApplicationDbContext
service inside InitializeRespawn
. What am I doing wrong?
https://paste.mod.gg/qocwjgvyewhp/11 replies
❔ OOP Event Handler implementation
Hi,
I am using D#+ (DiscordSharpPlus) and I am trying to figure out a class based implementation for handling events, instead of doing something like
client.Ready += OnReady
where I subscribe to the event in a functional programming way, I would like to have a class like this
I preferably want to use something like assembly scanning to automatically get these Handlers but I am not familiar enough wit Reflection to get the parameter passed to base
and then also somehow connecting this to the event (I guess I need to use addEventListener())
3 replies