Avoiding re-calls to instantiation methods on notification? #981
tp1415926535
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Classes that inherit from the notification class are always instantiated every time publish is triggered, and even DI injection can't avoid that. Examples:
I need to execute some events inside the form after triggering publish, so I inherited INotificationHandler in the window. Like:
It looks like I should inject all classes, and then have a class that doesn't need an initialization event inherit the notification and then have it call the other methods?
Beta Was this translation helpful? Give feedback.
All reactions