@ -50,7 +50,6 @@ namespace DotXxlJob.Core
services.AddSingleton<CallbackTaskQueue>();
services.AddSingleton<AdminClient>();
services.AddSingleton<ITaskExecutor, TaskExecutors.BeanTaskExecutor>();
services.AddSingleton(new JobHandlerCache());
return services;
}
@ -6,7 +6,7 @@ using Xunit;
namespace DotXxlJob.Core.Tests
{
public class BeanTaskExecutorTest
[Fact]
public async Task Repeated_Job_Handler()
@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using DotXxlJob.Core.Model;
using Microsoft.Extensions.DependencyInjection;
@ -7,7 +6,7 @@ using Xunit;
public class DefaultJobHandlerFactory