随笔分类 -  asp.net core 3.0 源码学习

asp.net core 学习
摘要:前面讲到ApplicationModel对象,那接下来看看ApplicationModel /// <summary> /// A model for configuring controllers in an MVC application. /// </summary> [DebuggerDis 阅读全文
posted @ 2020-04-06 16:18 蓝平凡 阅读(583) 评论(0) 推荐(0)
摘要:我们先看下IApplicationBuilder接口的扩展方法UseMvc public static IApplicationBuilder UseMvc( this IApplicationBuilder app, Action<IRouteBuilder> configureRoutes) { 阅读全文
posted @ 2020-04-06 15:09 蓝平凡 阅读(1192) 评论(0) 推荐(0)
摘要:先看下如下的扩展方法 public static class GenericHostWebHostBuilderExtensions { public static IHostBuilder ConfigureWebHost(this IHostBuilder builder, Action<IWe 阅读全文
posted @ 2020-04-06 09:57 蓝平凡 阅读(964) 评论(0) 推荐(0)
摘要:配置的实现在以Microsoft.Extensions.Configuration开头的Nuget包中,引入对应的nuget包就可以使用配置功能 Github地址:https://github.com/dotnet/extensions/tree/master/src/Configuration 一 阅读全文
posted @ 2020-03-21 10:30 蓝平凡 阅读(2577) 评论(0) 推荐(0)