I was wondering if there were any events in converge that I could hook into in order to run some custom synch code. Maybe an oncompleted event or onstart perhaps.
I have some custom data tables that I would like to synchronise when converge is run
There are no events to hook into as such, but you could add some JavaScript code into edit.controller.js under App_Plugins. There is a chain of functions in there that you could hook into.
The only issue there I can think of is that NuGet may give you some problems overwriting your changes with the original. Maybe a post-build event to apply your changes?
Running custom code
Hi Stuart,
I was wondering if there were any events in converge that I could hook into in order to run some custom synch code. Maybe an oncompleted event or onstart perhaps.
I have some custom data tables that I would like to synchronise when converge is run
Hi Huw,
There are no events to hook into as such, but you could add some JavaScript code into edit.controller.js under App_Plugins. There is a chain of functions in there that you could hook into.
The only issue there I can think of is that NuGet may give you some problems overwriting your changes with the original. Maybe a post-build event to apply your changes?
Stuart.
Having some simple event management seems like a good idea. I'll add it to my plans, but it won't be for a while I'm afraid.
Thanks Stuart, I did think about hooking into the controller.js, so thanks for confirming.
is working on a reply...