28 lines
804 B
C#
28 lines
804 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using StartupModules;
|
|
using Yi.Framework.Core.Attributes;
|
|
using Yi.Framework.Core;
|
|
using Yi.Framework.Ddd;
|
|
using Yi.Framework.ImageSharp;
|
|
|
|
namespace Yi.Framework.FileManager
|
|
{
|
|
[DependsOn(
|
|
typeof(YiFrameworkDddModule),
|
|
typeof(YiFrameworkImageSharpModule)
|
|
)]
|
|
public class YiFrameworkFileManagerModule : IStartupModule
|
|
{
|
|
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
|
|
{
|
|
|
|
}
|
|
|
|
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
|
{
|
|
services.AddTransient<FileService>();
|
|
services.AddTransient<IFileService,FileService>();
|
|
}
|
|
}
|
|
} |