Giter Club home page Giter Club logo

Comments (8)

spetz avatar spetz commented on July 26, 2024 1

@biapar I've just published version 1.3.2 - please take a look at the wiki -> Reconfigure() or at this blog post. Let me know if that's working ok for you.

from warden.

spetz avatar spetz commented on July 26, 2024

Hi,
Currently it's not possible.

from warden.

biapar avatar biapar commented on July 26, 2024

So, if I've to add a new watcher; I've to recompile the solution?

from warden.

spetz avatar spetz commented on July 26, 2024

Yes, at first I've built this library in order to be able to create e.g. a console application that will be treated as monitor and I didn't think about dynamically updating the watchers, but for sure I'll take a look into that issue in the upcoming days, as it shouldn't be too difficult to implement.
I've just created a new issue #138 for this feature :).

from warden.

biapar avatar biapar commented on July 26, 2024

Like it...especially web layout that I see in the blog post. So, I've pass to Reconfigure a WardenConfiguration. Is't right?

from warden.

spetz avatar spetz commented on July 26, 2024

Thanks! You can just use lambda expression and it will update the already existing WardenConfiguration instance (no need to pass it as an argument).

from warden.

ainasiart avatar ainasiart commented on July 26, 2024

The Reconfigure is not working as expected;
It adds the watcher to the list but it doesn't do the checking process.
I use the very simple command below
warden.Reconfigure(x => x.AddProcessWatcher(name: "Test Excel",processName:"EXCEL",configurator: cfg => cfg.EnsureThat(p => p.Exists),machineName:"MyMachineName",hooks:cfg=>cfg.OnCompleted(result => MessageBox.Show(result.IsValid.ToString())) ));

I pause the program to see the warden._configuration.Watchers, and the Text Excel above is there, only not executing

from warden.

yodamon avatar yodamon commented on July 26, 2024

Hi, I created a service that dynamically add web monitors from a database and I want call the Reconfigure if there is a change in my data from the database. I'm not really sure where/when to issue the warden.Reconfigure(). I'm using the Async model, are there any full code examples of using the Reconfigure.

from warden.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.