4 ms·
Sadly I’ve seen this happen just recently… with new code… written by someone who has over a decade of “experience”. It’s sufficient to simply use the “static”
by jiggawatts 2y ago
Sadly I’ve seen this happen just recently… with new code… written by someone who has over a decade of “experience”.
It’s sufficient to simply use the “static” keyword or a singleton service that should be scoped to the session.
The sad thing is that the default is the happy path, you have to go out of your way to break the session scoping by “being too clever”.