mirror of https://github.com/abpframework/abp.git
10 changed files with 9 additions and 34 deletions
@ -1,3 +1,3 @@ |
|||
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> |
|||
<ConfigureAwait /> |
|||
<ConfigureAwait ContinueOnCapturedContext="false" /> |
|||
</Weavers> |
|||
@ -1,16 +0,0 @@ |
|||
using Quartz.Impl; |
|||
using Quartz.Spi; |
|||
using Volo.Abp.Quartz; |
|||
using Volo.Abp.Threading; |
|||
|
|||
namespace Microsoft.Extensions.DependencyInjection |
|||
{ |
|||
public static class AbpQuartzServiceCollectionExtensions |
|||
{ |
|||
public static IServiceCollection AddQuartz(this IServiceCollection services, AbpQuartzPreOptions options) |
|||
{ |
|||
services.AddSingleton(AsyncHelper.RunSync(() => new StdSchedulerFactory(options.Properties).GetScheduler())); |
|||
return services.AddSingleton(typeof(IJobFactory), typeof(AbpQuartzJobFactory)); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue