# Scheduling a recurring job with a dynamic type from a config solution

**URL:** https://discuss.hangfire.io/t/scheduling-a-recurring-job-with-a-dynamic-type-from-a-config-solution/4346
**Category:** question
**Tags:** recurring, configuration
**Created:** [February 12, 2018, 4:42pm UTC](https://discuss.hangfire.io/t/scheduling-a-recurring-job-with-a-dynamic-type-from-a-config-solution/4346 "2018-02-12T16:42:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ragnarstolsmark](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/ragnarstolsmark/32/1226_2.png) [@ragnarstolsmark](https://discuss.hangfire.io/u/ragnarstolsmark)
#### Post date: [February 12, 2018, 4:42pm UTC](https://discuss.hangfire.io/t/scheduling-a-recurring-job-with-a-dynamic-type-from-a-config-solution/4346/1 "2018-02-12T16:42:35Z")

</div>

I have created a gist that show how you can schedule a recurring job with a dynamic class chosen at runtime and possibly loaded via a JSON or XML configuration file: [https://gist.github.com/ragnarstolsmark/c720bc3f47579fe0036dc2eb735fe159](https://gist.github.com/ragnarstolsmark/c720bc3f47579fe0036dc2eb735fe159)  
This could easily be extended with support for saving culture info as well using this method: [https://gist.github.com/ragnarstolsmark/314c34702a31855997ff570b220de420](https://gist.github.com/ragnarstolsmark/314c34702a31855997ff570b220de420)

Ragnar Stølsmark  
Developer  
IdentityStream AS
