November Happy Hour will be moved to Thursday December 5th.

Passing custom parameters into scheduled jobs

Vote:
 

I'm looking to throw in some custom parameters on a scheduled job, and I was wondering if this blog post by Mathias Kunto is still the one and only way to do it in Epi 10? His post is from 2012, so I was hoping that perhaps it's become easier/less dirty than how he outlines it, or maybe there's a different approach now? I couldn't find any other documentation though, and wanted to double check before diving into implementing it using his method.


Thanks! :)

#180632
Jul 18, 2017 20:30
Vote:
 

There is no other method at the moment. fork.update.publish ;)

#180633
Jul 18, 2017 22:30
Vote:
 

This post does describes how it can be done (note the oringal post has been removed and this is the archived version):

http://web.archive.org/web/20160304174341/http://www.dotcentric.co.uk/blog/2015-03-16-a-re-usable-episerver-scheduled-job-with-parameters/

David

#180634
Jul 18, 2017 22:50
Vote:
 

Also a side note (after reading post mentioned) - don't use ServiceLocator. Jobs support constructor injection as well.

#180635
Jul 18, 2017 22:54
Vote:
 

Thanks everyone! I'll take that into account. I sppose I'll likely use Mathias Kunto's approach, or maybe just put settings on another GUI Tool plugin, or maybe the settings page.

Good to know :)

#180682
Jul 20, 2017 20:59
Vote:
 

I would vote for plugin upgrade to v10 ;)

#180701
Jul 21, 2017 14:08
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.