框架为:abp

hangfire配置连接:https://aspnetboilerplate.com/Pages/Documents/Hangfire-Integration

在单元测试中如何配置呢?

1.我认为首先要配置测试类库的module

[DependsOn(typeof (AbpHangfireAspNetCoreModule))]
public class MyProjectWebModule : AbpModule
{
    public override void PreInitialize()
    {
        Configuration.BackgroundJobs.UseHangfire();             
    }

    //...
}
2.TO DO 
posted on 2019-12-12 14:28  芝麻的西瓜  阅读(272)  评论(0编辑  收藏  举报