warden-stack / Warden

Define "health checks" for your applications, resources and infrastructure. Keep your Warden on the watch.
https://getwarden.net
MIT License
616 stars 66 forks source link

Add watcher to current warden instance at runtime #132

Open verysimplenick opened 8 years ago

verysimplenick commented 8 years ago

Hi, thanks for project, I want know how I can add watcher at runtime after I create warden? I mean:

var warden = WardenInstance.Create(wardenConfiguration.Build());
// ...
// now I need add another watcher or delete existing

How I can do this?

spetz commented 8 years ago

Hello, For now, such functionality is not possible, but it seems like a good idea for one of the new features. All you can do is to control the already running Warden instance via WardenManager. Please take a look into the Examples directory where you can find Warden.Examples.CommandsAndEvents.App and Warden.Examples.CommandsAndEvents.Manager in case you'd need such option.