using Qiniu; using System; using System.Collections.Generic; using System.Text; using Ufangx.FileServices.Abstractions; namespace Microsoft.Extensions.DependencyInjection { public static class QiniuFileServiceExtensions { public static IFileServiceBuilder AddQiniuFileService(this IFileServiceBuilder builder , Action action) where TResumableInfoService: QiniuResumableInfoService //class,IResumableInfoService { var services = builder.Services; services.AddTransient(); services.AddTransient(); services.AddTransient(); services.Configure(action); return builder; } public static IFileServiceBuilder AddQiniuFileService(this IFileServiceBuilder builder, Action action) => AddQiniuFileService(builder, action); } }