2023-02-23 14:15:24 +08:00
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using StartupModules;
|
2023-03-02 10:19:18 +08:00
|
|
|
|
using Yi.Framework.Core.Attributes;
|
|
|
|
|
|
using Yi.Framework.Core;
|
|
|
|
|
|
using Yi.Framework.Ddd;
|
2023-02-23 14:15:24 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.FileManager
|
2023-02-22 17:30:20 +08:00
|
|
|
|
{
|
2023-03-02 10:19:18 +08:00
|
|
|
|
[DependsOn(
|
|
|
|
|
|
typeof(YiFrameworkDddModule)
|
|
|
|
|
|
)]
|
2023-02-23 14:15:24 +08:00
|
|
|
|
public class YiFrameworkFileManagerModule : IStartupModule
|
2023-02-22 17:30:20 +08:00
|
|
|
|
{
|
2023-02-23 14:15:24 +08:00
|
|
|
|
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2023-02-22 17:30:20 +08:00
|
|
|
|
|
2023-02-23 14:15:24 +08:00
|
|
|
|
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddTransient<FileService>();
|
|
|
|
|
|
services.AddTransient<IFileService,FileService>();
|
|
|
|
|
|
}
|
2023-02-22 17:30:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|