Open Rijak0 opened 3 years ago
OnApplicationStarting # Useful for connecting to database, rabbit etc. OnApplicationStarted # Called when application
IHookListener { optional void OnMessageReceived(); }
IHookManager : IHookListener {
}
builder.AddHookListener
----------------------------------------------------------- Signed by Christoph Reichahrdt
AppLifetime { OnApplicationStarted; (TBD) OnApplicationStopping; OnApplicationStopped; }
For things like database that need to be instanced right away on application startup/cronjob add them via .AddEagleSingleton();
Use a CallbackInterface/Class which provides methods which are called by framework where the logic for logging/tracing/metrics is handled by the dudes. Provide Jäger UI default implementation. Provide Elastic Search default implementation.