怪物奇妙物语

宇宙无敌超级美少男的怪物奇妙物语

首页 新随笔 联系 管理
  822 随笔 :: 0 文章 :: 2 评论 :: 16万 阅读

2024年2月9日 #

摘要: AddLogging的使用 services.AddLogging(logBuilder => { logBuilder.AddConsole(); }); AddLogging的实现 public static IServiceCollection AddLogging(this IService 阅读全文
posted @ 2024-02-09 22:59 超级无敌美少男战士 阅读(24) 评论(0) 推荐(0) 编辑

摘要: AddConsole方法 // Summary: // Adds a console logger named 'Console' to the factory. // // Parameters: // builder: // The Microsoft.Extensions.Logging.IL 阅读全文
posted @ 2024-02-09 22:54 超级无敌美少男战士 阅读(45) 评论(0) 推荐(0) 编辑

摘要: 依赖注入的基本使用1/Program.cs using Microsoft.Extensions.DependencyInjection; ServiceCollection services = new ServiceCollection(); // 瞬态服务 services.AddTransi 阅读全文
posted @ 2024-02-09 21:34 超级无敌美少男战士 阅读(14) 评论(0) 推荐(0) 编辑

摘要: 依赖注入的基本使用1/Program.cs using Microsoft.Extensions.DependencyInjection; ServiceCollection services = new ServiceCollection(); // AddTransient的两种方式 // se 阅读全文
posted @ 2024-02-09 21:34 超级无敌美少男战士 阅读(35) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示