namespace DS.Module.RedisModule; using Microsoft.Extensions.DependencyInjection; /// /// 注入Redis服务 /// public static class RedisModuleInstall { /// /// /// /// /// public static void AddRedisModuleInstall(this IServiceCollection services) { if (services == null) throw new ArgumentNullException(nameof(services)); services.AddScoped(); } }