using Volo.Abp.BackgroundWorkers.Hangfire; using Volo.Abp.DependencyInjection; namespace Yi.Abp.Web; public class YiHangfireConventionalRegistrar : DefaultConventionalRegistrar { protected override bool IsConventionalRegistrationDisabled(Type type) { return !typeof(IHangfireBackgroundWorker).IsAssignableFrom(type) || base.IsConventionalRegistrationDisabled(type); } protected override List GetExposedServiceTypes(Type type) { return new List() { typeof(IHangfireBackgroundWorker) }; } }