Skip to content

How to ensure that a Singleton service gets dispossed on app exit? #4595

Closed Answered by gmgallo
gmgallo asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer, it was in the warnings that I didn't pay attention for a quick test. It turns out that ILogController added void Dispose() to the interface behind my back hiding the class implementation. (I added IDisposable initially to the interface).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gmgallo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant