ServiceStack.Quartz


Configuration Edit on GitHub


From AppSettings

By default, the plugin will use any configuration keys starting with quartz. available from ServiceStack's IAppSettings.

The following example will configure Quartz.Net's threadpool settings

<appsettings>
    <add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
    <add key="quartz.threadPool.threadCount" value="5" />
</appsettings>

To learn more about the available Quartz configuration settings see the Quartz.Net configuration docs

From code

Configuration can also be passed directly to the plugin. This will override any duplicate settings from the application configuration above.

var quartzConfig = new NameValueCollection();
properties["quartz.threadPool.type"] = "Quartz.Simpl.SimpleThreadPool, Quartz";
properties["quartz.threadPool.threadCount"] = "5";
    
var quartzFeature = new QuartzFeature { Config = quartzConfig };