Skip to content

Kurris/Kurisu

Repository files navigation

原生二次封装框架

如何使用

  • Program 启动项修改为框架执行
    public class Program
    {
         public static void Main(string[] args)
         {
            KurisuHost.Run<Startup>(args);
         }
    }
  • Startup 继承DefaultKurisuStartup使用默认的配置, override修饰的方法按需重写
    public class Startup : DefaultKurisuStartup
    {
        public Startup(IConfiguration configuration) : base(configuration)
        {
        }
        
        public override void ConfigureServices(IServiceCollection services)
        {
            base.ConfigureServices(services);
        }

        public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            base.Configure(app, env);
        }
    }

然后即可启动

About

我的后端框架大杂烩

Resources

Stars

Watchers

Forks

Packages

No packages published