-
Notifications
You must be signed in to change notification settings - Fork 307
Consider renaming the methods on IApplicationLifetimeEvents (and maybe the interface) #895
Comments
+1 on stripping "On" However, the Please don't remove this call...unless there's another equivalent in the pipe we can hook into here? |
I'm on putting it back if we can find scenarios where it's usable. The fact that the service provider has already disposed everything is my motivation for removing it. If you call into things that have been disposed, they'll go boom. |
Design review:
|
Hmm... Present participle better: |
Thats the point. It's it's more like IRegisteredObject in previous ASP.NET. It's a service that gets notified on Start up of the application (after listening) and after before dispose. It's explicitly not about application events, thats the fundamental change. |
Aha, gotcha. So its the declaration of the |
Yep! |
Instead of On* which looks like an event, maybe they should be proper method names (verbs).
I can't think of a reason to handle ApplicationStopped. At that point the service provider is already disposed so you can't really call into anything safely.
The text was updated successfully, but these errors were encountered: