优化代码、数据库字符串连接

This commit is contained in:
不做码农
2023-06-04 16:43:35 +08:00
parent 2e39825b5c
commit cdd4b42f0a
7 changed files with 98 additions and 37 deletions

View File

@@ -1,8 +1,4 @@
using Infrastructure;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Quartz.Spi;
using System;
using Quartz.Spi;
using ZR.Tasks;
namespace ZR.Admin.WebApi.Extensions
@@ -12,6 +8,11 @@ namespace ZR.Admin.WebApi.Extensions
/// </summary>
public static class TasksExtension
{
/// <summary>
/// 注册任务
/// </summary>
/// <param name="services"></param>
/// <exception cref="ArgumentNullException"></exception>
public static void AddTaskSchedulers(this IServiceCollection services)
{
if (services == null) throw new ArgumentNullException(nameof(services));