Runs just after the app shuts down. This is useful for things like the data source service, which should still be available at the OnAppShutdown hooks.
In most cases you probably want to implement OnAppShutdown.
Runs when the app starts.
Subscribes to events of the given type with the given hook.
Additional options can be provided, like eg. Retries or the id of the subscriber. This needs to be unique.
Subscribes to ALL events with the given hook.
Additional options can be provided, like eg. Retries or the id of the subscriber. This needs to be unique.
Default implementation of the event service.