Delayed Action

Topics: Core, General, Writing modules
Aug 3, 2012 at 5:55 PM

I'm trying to use the Delayed Action from the rules module to trigger a rule containing a custom action I built. I can't figure out how to trigger the actual event when the custom action is called from the delayed action. I see how the action gets wired up in the MailActions.cs class from Orchard by the (Func<dynamic, bool>)Send method. What I don't understand is how to wire up something that is just triggered from a delayed action? I tried using the same (Func<dynamic, bool>)Send method in my custom action but it is never called when triggered from the Delayed Action. Any examples or help on how this is supposed to work would be appreciated.

Aug 4, 2012 at 3:44 PM

I think I figured out the issue. I was trying to create a recurring job which won't work using the delayed action. However, it looks like by implementing the IScheduledTaskHandler, I will be able to build out what I'm looking for.