public static void UseRavenDb(this SchedulerBuilder.PersistentStoreOptions options,
                               Action <RavenDbProviderOptions> config = null)
 {
     options.SetProperty(StdSchedulerFactory.PropertyJobStoreType,
                         typeof(RavenJobStore).AssemblyQualifiedNameWithoutVersion());
     config?.Invoke(new RavenDbProviderOptions(options));
 }
        public static void UseRavenDbWithInjectedDocumentStore(this SchedulerBuilder.PersistentStoreOptions options,
                                                               Microsoft.Extensions.DependencyInjection.IServiceCollection services)
        {
            options.SetProperty(StdSchedulerFactory.PropertyJobStoreType,
                                typeof(RavenJobStore).AssemblyQualifiedNameWithoutVersion());

            services.AddSingleton <IJobStore, RavenJobStore>();
        }
 protected internal RavenDbProviderOptions(SchedulerBuilder.PersistentStoreOptions options)
 {
     _options = options;
 }