You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/framework/test/Volo.Abp.BackgroundJobs.Tests/Volo/Abp/BackgroundJobs/AbpBackgroundJobsTestModule.cs

22 lines
653 B

using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
namespace Volo.Abp.BackgroundJobs
{
[DependsOn(
typeof(AbpBackgroundJobsModule)
)]
public class AbpBackgroundJobsTestModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
//TODO: Can we automatically register these!
context.Services.Configure<BackgroundJobOptions>(options =>
{
options.JobTypes[MyJobArgs.Name] = typeof(MyJob);
});
context.Services.AddAssemblyOf<AbpBackgroundJobsTestModule>();
}
}
}