C#C
C#3y ago
Elio

✅ Singleton Class

Do you know if there is a way to call a method each time i retrieve my singleton class this way :
services.GetRequiredService<MaterialDetailsViewModel>()
I want to reset 1 variable each time i call this singleton with GetRequiredService
Was this page helpful?