Files
Quartzmin/Source/Quartz.Plugins.RecentHistory/Extensions.cs
Ján Lučanský 6b2f18bfb4 Initial commit
2018-12-28 19:37:16 +01:00

17 lines
519 B
C#

namespace Quartz.Plugins.RecentHistory
{
public static class Extensions
{
public static void SetExecutionHistoryStore(this SchedulerContext context, IExecutionHistoryStore store)
{
context.Put(typeof(IExecutionHistoryStore).FullName, store);
}
public static IExecutionHistoryStore GetExecutionHistoryStore(this SchedulerContext context)
{
return (IExecutionHistoryStore)context.Get(typeof(IExecutionHistoryStore).FullName);
}
}
}