有人可以在JavaScript中提供有关模块加载器和模块捆绑器的一些信息吗?
我想知道如何在我的应用程序中使用像asp.net core这样的中间件架构?
这个目标需要哪种模式?
是否有任何像这样的设计参考添加新功能和...?
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();
app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseIdentity();
// Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
Run Code Online (Sandbox Code Playgroud)
使用非常简单的Configure方法,我们可以向应用程序添加新功能如何实现这样的功能?