架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

搜索
查看: 8453|回复: 4

[ASP.NET] ASP.NET Core(十一)端点路由添加中间件显示所有 DI 服务

[复制链接]
发表于 2022-3-8 16:20:36 | 显示全部楼层 |阅读模式
ASP.NET Core 支持依赖注入 (DI) 软件设计模式,这是一种在类及其依赖项之间实现控制反转 (IoC)的技术。

依赖注入(DI)

依赖注入,英文是Dependency Injection一般简称DI,是实现对象与其协作者或依赖关系之间松散耦合的技术。为了执行其操作,类所需的对象不是直接实例化协作者或使用静态引用,而是以某种方式提供给类。 大多数情况下,类将通过它们的构造函数来声明它们的依赖关系,允许它们遵循显式依赖原则。 这种方法被称为“构造方法注入”。

回顾:

ASP.NET Core使用Autofac两种方式实现IOC注入
https://www.itsvse.com/thread-7563-1-1.html

ASP.NET Core依赖注入使用自带的IOC容器
https://www.itsvse.com/thread-7562-1-1.html

asp.net mvc 使用ninject实现ioc依赖注入
https://www.itsvse.com/thread-3237-1-1.html

IoC高效的Autofac
https://www.itsvse.com/thread-3105-1-1.html

端点路由(EndpointRoute)

通过添加强大的端点概念,路由系统构建在中间件管道之上。端点代表应用程序功能的单元,它们在路由、授权和任意数量的 ASP.NET Core 系统方面彼此不同。

通过我自己实战体验下来,可以在执行控制器方法之前,从中间件中获取路由信息;端点路由还可以添加任意元数据,通过拦截所有请求获取目标端点的元数据信息,还可以进行权限过滤等,也就是中间件加了一层过滤器

新建一个端点路由的扩展方法,默认拦截 /services 请求,显示 DI 容器里面注册的所有服务以及生命周期,方便开发测试、排查问题。

获取所有注册的服务和实现及生命周期,参考如下:

.NET Core 显示显示已经注册的服务和实现及生命周期
https://www.itsvse.com/thread-9469-1-1.html

代码如下:

在 app.UseEndpoints 中注册,代码如下:

通过浏览器访问 /services,如下图:

QQ截图20220308161902.jpg

回顾:

ASP.NET Core(十)Configuration 配置优先级详解
https://www.itsvse.com/thread-10265-1-1.html

ASP.NET Core(九) 之 Middleware 中间件详解
https://www.itsvse.com/thread-9647-1-1.html

ASP.NET Core 中间件(Middleware)详解
https://www.itsvse.com/thread-8126-1-1.html

ASP.NET Core(八) 之 Swagger UI 默认参数的坑
https://www.itsvse.com/thread-9640-1-1.html

ASP.NET Core(七)深入刨析框架源码
https://www.itsvse.com/thread-9601-1-1.html

ASP.NET Core(六)DI 手动获取注入对象的方法
https://www.itsvse.com/thread-9595-1-1.html

ASP.NET Core(五)基于 CAP 分布式事务
https://www.itsvse.com/thread-9593-1-1.html

ASP.NET Core(四)之过滤器统一 ModelState 模型验证
https://www.itsvse.com/thread-9589-1-1.html

ASP.NET Core(三)使用 ActivatorUtilities 动态创建实例
https://www.itsvse.com/thread-9488-1-1.html

ASP.NET Core(二)通过代码自重启应用
https://www.itsvse.com/thread-9480-1-1.html

ASP.NET Core(一)使用 Redis 缓存
https://www.itsvse.com/thread-9393-1-1.html
(完)




上一篇:.NET/C# 集合类型查询基准测试
下一篇:【实战】ASP.NET Core 6 部署在 ARM 树莓派实现 DDNS 和网络唤醒
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2022-3-8 20:01:02 | 显示全部楼层
学习学习
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2022-8-30 13:25:50 | 显示全部楼层
号东西,学习学习!!号东西,学习学习!!
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
 楼主| 发表于 2023-8-14 19:36:45 | 显示全部楼层
ASP.NET Core 6 默认注册容器

类型生命周期实现
Microsoft.Extensions.Hosting.IHostingEnvironmentSingleton
Microsoft.Extensions.Hosting.IHostEnvironmentSingleton
Microsoft.Extensions.Hosting.HostBuilderContextSingleton
Microsoft.Extensions.Configuration.IConfigurationSingleton
Microsoft.Extensions.Hosting.IApplicationLifetimeSingleton
Microsoft.Extensions.Hosting.IHostApplicationLifetimeSingletonMicrosoft.Extensions.Hosting.Internal.ApplicationLifetime
Microsoft.Extensions.Hosting.IHostLifetimeSingletonMicrosoft.Extensions.Hosting.Internal.ConsoleLifetime
Microsoft.Extensions.Hosting.IHostSingleton
Microsoft.Extensions.Options.IOptions`1SingletonMicrosoft.Extensions.Options.UnnamedOptionsManager`1
Microsoft.Extensions.Options.IOptionsSnapshot`1ScopedMicrosoft.Extensions.Options.OptionsManager`1
Microsoft.Extensions.Options.IOptionsMonitor`1SingletonMicrosoft.Extensions.Options.OptionsMonitor`1
Microsoft.Extensions.Options.IOptionsFactory`1TransientMicrosoft.Extensions.Options.OptionsFactory`1
Microsoft.Extensions.Options.IOptionsMonitorCache`1SingletonMicrosoft.Extensions.Options.OptionsCache`1
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Hosting.HostOptions, Microsoft.Extensions.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Logging.ILoggerFactorySingletonMicrosoft.Extensions.Logging.LoggerFactory
Microsoft.Extensions.Logging.ILogger`1SingletonMicrosoft.Extensions.Logging.Logger`1
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Options.IOptions`1SingletonMicrosoft.Extensions.Options.UnnamedOptionsManager`1
Microsoft.Extensions.Options.IOptionsSnapshot`1ScopedMicrosoft.Extensions.Options.OptionsManager`1
Microsoft.Extensions.Options.IOptionsMonitor`1SingletonMicrosoft.Extensions.Options.OptionsMonitor`1
Microsoft.Extensions.Options.IOptionsFactory`1TransientMicrosoft.Extensions.Options.OptionsFactory`1
Microsoft.Extensions.Options.IOptionsMonitorCache`1SingletonMicrosoft.Extensions.Options.OptionsCache`1
Microsoft.Extensions.Logging.ILoggerFactorySingletonMicrosoft.Extensions.Logging.LoggerFactory
Microsoft.Extensions.Logging.ILogger`1SingletonMicrosoft.Extensions.Logging.Logger`1
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Logging.Configuration.ILoggerProviderConfigurationFactorySingletonMicrosoft.Extensions.Logging.Configuration.LoggerProviderConfigurationFactory
Microsoft.Extensions.Logging.Configuration.ILoggerProviderConfiguration`1SingletonMicrosoft.Extensions.Logging.Configuration.LoggerProviderConfiguration`1
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Logging.Configuration.LoggingConfigurationSingleton
Microsoft.Extensions.Logging.Console.ConsoleFormatterSingletonMicrosoft.Extensions.Logging.Console.JsonConsoleFormatter
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2[[Microsoft.Extensions.Logging.Console.JsonConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterOptionsChangeTokenSource`2[[Microsoft.Extensions.Logging.Console.JsonConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Logging.Console.ConsoleFormatterSingletonMicrosoft.Extensions.Logging.Console.SystemdConsoleFormatter
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2[[Microsoft.Extensions.Logging.Console.SystemdConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterOptionsChangeTokenSource`2[[Microsoft.Extensions.Logging.Console.SystemdConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Logging.Console.ConsoleFormatterSingletonMicrosoft.Extensions.Logging.Console.SimpleConsoleFormatter
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2[[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.ConsoleLoggerFormatterOptionsChangeTokenSource`2[[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Logging.ILoggerProviderSingletonMicrosoft.Extensions.Logging.Console.ConsoleLoggerProvider
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.Configuration.LoggerProviderConfigureOptions`2[[Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.Configuration.LoggerProviderOptionsChangeTokenSource`2[[Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider, Microsoft.Extensions.Logging.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]
Microsoft.Extensions.Logging.ILoggerProviderSingletonMicrosoft.Extensions.Logging.Debug.DebugLoggerProvider
Microsoft.Extensions.Logging.EventSource.LoggingEventSourceSingleton
Microsoft.Extensions.Logging.ILoggerProviderSingletonMicrosoft.Extensions.Logging.EventSource.EventSourceLoggerProvider
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.EventLogFiltersConfigureOptions
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.Extensions.Logging.LoggerFilterOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.Extensions.Logging.EventLogFiltersConfigureOptionsChangeSource
Microsoft.Extensions.Logging.ILoggerProviderSingletonMicrosoft.Extensions.Logging.EventLog.EventLogLoggerProvider
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.Extensions.Logging.LoggerFactoryOptions, Microsoft.Extensions.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.AspNetCore.Hosting.IWebHostEnvironmentSingleton
Microsoft.AspNetCore.Hosting.IHostingEnvironmentSingleton
Microsoft.AspNetCore.Hosting.IApplicationLifetimeSingletonMicrosoft.AspNetCore.Hosting.GenericWebHostApplicationLifetime
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Hosting.GenericWebHostServiceOptions, Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
System.Diagnostics.DiagnosticListenerSingleton
System.Diagnostics.DiagnosticSourceSingleton
System.Diagnostics.ActivitySourceSingleton
System.Diagnostics.DistributedContextPropagatorSingleton
Microsoft.AspNetCore.Http.IHttpContextFactorySingletonMicrosoft.AspNetCore.Http.DefaultHttpContextFactory
Microsoft.AspNetCore.Http.IMiddlewareFactoryScopedMicrosoft.AspNetCore.Http.MiddlewareFactory
Microsoft.AspNetCore.Hosting.Builder.IApplicationBuilderFactorySingletonMicrosoft.AspNetCore.Hosting.Builder.ApplicationBuilderFactory
Microsoft.AspNetCore.Hosting.IStartupFilterSingleton
Microsoft.AspNetCore.Hosting.IStartupFilterSingleton
Microsoft.AspNetCore.Connections.IMultiplexedConnectionListenerFactorySingletonMicrosoft.AspNetCore.Server.Kestrel.Transport.Quic.QuicTransportFactory
Microsoft.AspNetCore.Connections.IConnectionListenerFactorySingletonMicrosoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions, Microsoft.AspNetCore.Server.Kestrel.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.KestrelServerOptionsSetup
Microsoft.AspNetCore.Hosting.Server.IServerSingletonMicrosoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions, Microsoft.AspNetCore.Server.Kestrel.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Options.IPostConfigureOptions`1[[Microsoft.AspNetCore.HostFiltering.HostFilteringOptions, Microsoft.AspNetCore.HostFiltering, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Options.IOptionsChangeTokenSource`1[[Microsoft.AspNetCore.HostFiltering.HostFilteringOptions, Microsoft.AspNetCore.HostFiltering, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.AspNetCore.Hosting.IStartupFilterTransientMicrosoft.AspNetCore.HostFilteringStartupFilter
Microsoft.AspNetCore.Hosting.IStartupFilterTransientMicrosoft.AspNetCore.ForwardedHeadersStartupFilter
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Builder.ForwardedHeadersOptions, Microsoft.AspNetCore.HttpOverrides, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.ForwardedHeadersOptionsSetup
Microsoft.AspNetCore.Routing.IInlineConstraintResolverTransientMicrosoft.AspNetCore.Routing.DefaultInlineConstraintResolver
Microsoft.Extensions.ObjectPool.ObjectPoolProviderTransientMicrosoft.Extensions.ObjectPool.DefaultObjectPoolProvider
Microsoft.Extensions.ObjectPool.ObjectPool`1[[Microsoft.AspNetCore.Routing.UriBuildingContext, Microsoft.AspNetCore.Routing, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilderTransient
Microsoft.AspNetCore.Routing.RoutingMarkerServiceSingletonMicrosoft.AspNetCore.Routing.RoutingMarkerService
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Routing.RouteOptions, Microsoft.AspNetCore.Routing, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Transient
Microsoft.AspNetCore.Routing.EndpointDataSourceSingleton
Microsoft.AspNetCore.Routing.ParameterPolicyFactorySingletonMicrosoft.AspNetCore.Routing.DefaultParameterPolicyFactory
Microsoft.AspNetCore.Routing.Matching.MatcherFactorySingletonMicrosoft.AspNetCore.Routing.Matching.DfaMatcherFactory
Microsoft.AspNetCore.Routing.Matching.DfaMatcherBuilderTransientMicrosoft.AspNetCore.Routing.Matching.DfaMatcherBuilder
Microsoft.AspNetCore.Routing.Internal.DfaGraphWriterSingletonMicrosoft.AspNetCore.Routing.Internal.DfaGraphWriter
Microsoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher+LifetimeTransientMicrosoft.AspNetCore.Routing.Matching.DataSourceDependentMatcher+Lifetime
Microsoft.AspNetCore.Routing.Matching.EndpointMetadataComparerSingleton
Microsoft.AspNetCore.Routing.LinkGeneratorSingletonMicrosoft.AspNetCore.Routing.DefaultLinkGenerator
Microsoft.AspNetCore.Routing.IEndpointAddressScheme`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]SingletonMicrosoft.AspNetCore.Routing.EndpointNameAddressScheme
Microsoft.AspNetCore.Routing.IEndpointAddressScheme`1[[Microsoft.AspNetCore.Routing.RouteValuesAddress, Microsoft.AspNetCore.Routing, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Routing.RouteValuesAddressScheme
Microsoft.AspNetCore.Routing.LinkParserSingletonMicrosoft.AspNetCore.Routing.DefaultLinkParser
Microsoft.AspNetCore.Routing.Matching.EndpointSelectorSingletonMicrosoft.AspNetCore.Routing.Matching.DefaultEndpointSelector
Microsoft.AspNetCore.Routing.MatcherPolicySingletonMicrosoft.AspNetCore.Routing.Matching.HttpMethodMatcherPolicy
Microsoft.AspNetCore.Routing.MatcherPolicySingletonMicrosoft.AspNetCore.Routing.Matching.HostMatcherPolicy
Microsoft.AspNetCore.Routing.MatcherPolicySingletonMicrosoft.AspNetCore.Routing.Matching.AcceptsMatcherPolicy
Microsoft.AspNetCore.Routing.Template.TemplateBinderFactorySingletonMicrosoft.AspNetCore.Routing.Template.DefaultTemplateBinderFactory
Microsoft.AspNetCore.Routing.Patterns.RoutePatternTransformerSingletonMicrosoft.AspNetCore.Routing.Patterns.DefaultRoutePatternTransformer
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Routing.RouteHandlerOptions, Microsoft.AspNetCore.Routing, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Routing.ConfigureRouteHandlerOptions
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Hosting.GenericWebHostServiceOptions, Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.Extensions.Configuration.IConfigurationSingleton
Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManagerSingleton
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcOptions, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Mvc.MvcCoreMvcOptionsSetup
Microsoft.Extensions.Options.IPostConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcOptions, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Mvc.MvcCoreMvcOptionsSetup
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.ApiBehaviorOptions, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.ApiBehaviorOptionsSetup
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Routing.RouteOptions, Microsoft.AspNetCore.Routing, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.MvcCoreRouteOptionsSetup
Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModelFactorySingletonMicrosoft.AspNetCore.Mvc.ApplicationModels.ApplicationModelFactory
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.ApplicationModels.DefaultApplicationModelProvider
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.ApplicationModels.ApiBehaviorApplicationModelProvider
Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProviderTransientMicrosoft.AspNetCore.Mvc.ApplicationModels.ControllerActionDescriptorProvider
Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProviderSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.DefaultActionDescriptorCollectionProvider
Microsoft.AspNetCore.Mvc.Infrastructure.IActionSelectorSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ActionSelector
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintCacheSingletonMicrosoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintCache
Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintProviderTransientMicrosoft.AspNetCore.Mvc.ActionConstraints.DefaultActionConstraintProvider
Microsoft.AspNetCore.Routing.MatcherPolicySingletonMicrosoft.AspNetCore.Mvc.Routing.ActionConstraintMatcherPolicy
Microsoft.AspNetCore.Mvc.Controllers.IControllerFactorySingletonMicrosoft.AspNetCore.Mvc.Controllers.DefaultControllerFactory
Microsoft.AspNetCore.Mvc.Controllers.IControllerActivatorTransientMicrosoft.AspNetCore.Mvc.Controllers.DefaultControllerActivator
Microsoft.AspNetCore.Mvc.Controllers.IControllerFactoryProviderSingletonMicrosoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider
Microsoft.AspNetCore.Mvc.Controllers.IControllerActivatorProviderSingletonMicrosoft.AspNetCore.Mvc.Controllers.ControllerActivatorProvider
Microsoft.AspNetCore.Mvc.Controllers.IControllerPropertyActivatorTransientMicrosoft.AspNetCore.Mvc.Controllers.DefaultControllerPropertyActivator
Microsoft.AspNetCore.Mvc.Infrastructure.IActionInvokerFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ActionInvokerFactory
Microsoft.AspNetCore.Mvc.Abstractions.IActionInvokerProviderTransientMicrosoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvokerProvider
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvokerCacheSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvokerCache
Microsoft.AspNetCore.Mvc.Filters.IFilterProviderSingletonMicrosoft.AspNetCore.Mvc.Filters.DefaultFilterProvider
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapperSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ActionResultTypeMapper
Microsoft.AspNetCore.Mvc.Filters.RequestSizeLimitFilterTransientMicrosoft.AspNetCore.Mvc.Filters.RequestSizeLimitFilter
Microsoft.AspNetCore.Mvc.Filters.DisableRequestSizeLimitFilterTransientMicrosoft.AspNetCore.Mvc.Filters.DisableRequestSizeLimitFilter
Microsoft.AspNetCore.Mvc.Filters.RequestFormLimitsFilterTransientMicrosoft.AspNetCore.Mvc.Filters.RequestFormLimitsFilter
Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProviderSingletonMicrosoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProviderTransient
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactorySingletonMicrosoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidatorSingleton
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorCacheSingletonMicrosoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorCache
Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinderSingletonMicrosoft.AspNetCore.Mvc.ModelBinding.ParameterBinder
Microsoft.Extensions.DependencyInjection.MvcMarkerServiceSingletonMicrosoft.Extensions.DependencyInjection.MvcMarkerService
Microsoft.AspNetCore.Mvc.Infrastructure.ITypeActivatorCacheSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.TypeActivatorCache
Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactorySingletonMicrosoft.AspNetCore.Mvc.Routing.UrlHelperFactory
Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.MemoryPoolHttpRequestStreamReaderFactory
Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.MemoryPoolHttpResponseStreamWriterFactory
System.Buffers.ArrayPool`1[[System.Byte, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]Singleton
System.Buffers.ArrayPool`1[[System.Char, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]Singleton
Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelectorSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.ObjectResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.PhysicalFileResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.PhysicalFileResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.VirtualFileResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.VirtualFileResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.FileStreamResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.FileStreamResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.FileContentResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.FileContentResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.RedirectResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.RedirectResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.LocalRedirectResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.LocalRedirectResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.RedirectToActionResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.RedirectToActionResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.RedirectToRouteResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.RedirectToRouteResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.RedirectToPageResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.RedirectToPageResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.ContentResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ContentResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.JsonResult, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.Infrastructure.SystemTextJsonResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ProblemDetailsClientErrorFactory
Microsoft.AspNetCore.Mvc.Infrastructure.ProblemDetailsFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.DefaultProblemDetailsFactory
Microsoft.AspNetCore.Mvc.Routing.MvcRouteHandlerSingletonMicrosoft.AspNetCore.Mvc.Routing.MvcRouteHandler
Microsoft.AspNetCore.Mvc.Routing.MvcAttributeRouteHandlerTransientMicrosoft.AspNetCore.Mvc.Routing.MvcAttributeRouteHandler
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionEndpointDataSourceFactorySingletonMicrosoft.AspNetCore.Mvc.Infrastructure.ControllerActionEndpointDataSourceFactory
Microsoft.AspNetCore.Mvc.Infrastructure.OrderedEndpointsSequenceProviderCacheSingletonMicrosoft.AspNetCore.Mvc.Infrastructure.OrderedEndpointsSequenceProviderCache
Microsoft.AspNetCore.Mvc.Routing.ControllerActionEndpointDataSourceIdProviderSingletonMicrosoft.AspNetCore.Mvc.Routing.ControllerActionEndpointDataSourceIdProvider
Microsoft.AspNetCore.Mvc.Routing.ActionEndpointFactorySingletonMicrosoft.AspNetCore.Mvc.Routing.ActionEndpointFactory
Microsoft.AspNetCore.Mvc.Routing.DynamicControllerEndpointSelectorCacheSingletonMicrosoft.AspNetCore.Mvc.Routing.DynamicControllerEndpointSelectorCache
Microsoft.AspNetCore.Routing.MatcherPolicySingletonMicrosoft.AspNetCore.Mvc.Routing.DynamicControllerEndpointMatcherPolicy
Microsoft.AspNetCore.Mvc.Routing.IRequestDelegateFactorySingletonMicrosoft.AspNetCore.Mvc.Routing.ControllerRequestDelegateFactory
Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterConfigurationProviderSingletonMicrosoft.AspNetCore.Mvc.Filters.MiddlewareFilterConfigurationProvider
Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderSingletonMicrosoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilder
Microsoft.AspNetCore.Hosting.IStartupFilterSingletonMicrosoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProviderSingletonMicrosoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProviderTransientMicrosoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
Microsoft.AspNetCore.Authentication.IAuthenticationServiceScopedMicrosoft.AspNetCore.Authentication.AuthenticationService
Microsoft.AspNetCore.Authentication.IClaimsTransformationSingletonMicrosoft.AspNetCore.Authentication.NoopClaimsTransformation
Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProviderScopedMicrosoft.AspNetCore.Authentication.AuthenticationHandlerProvider
Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProviderSingletonMicrosoft.AspNetCore.Authentication.AuthenticationSchemeProvider
Microsoft.AspNetCore.Authorization.IAuthorizationServiceTransientMicrosoft.AspNetCore.Authorization.DefaultAuthorizationService
Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProviderTransientMicrosoft.AspNetCore.Authorization.DefaultAuthorizationPolicyProvider
Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProviderTransientMicrosoft.AspNetCore.Authorization.DefaultAuthorizationHandlerProvider
Microsoft.AspNetCore.Authorization.IAuthorizationEvaluatorTransientMicrosoft.AspNetCore.Authorization.DefaultAuthorizationEvaluator
Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactoryTransientMicrosoft.AspNetCore.Authorization.DefaultAuthorizationHandlerContextFactory
Microsoft.AspNetCore.Authorization.IAuthorizationHandlerTransientMicrosoft.AspNetCore.Authorization.Infrastructure.PassThroughAuthorizationHandler
Microsoft.AspNetCore.Authorization.Policy.AuthorizationPolicyMarkerServiceSingletonMicrosoft.AspNetCore.Authorization.Policy.AuthorizationPolicyMarkerService
Microsoft.AspNetCore.Authorization.Policy.IPolicyEvaluatorTransientMicrosoft.AspNetCore.Authorization.Policy.PolicyEvaluator
Microsoft.AspNetCore.Authorization.IAuthorizationMiddlewareResultHandlerTransientMicrosoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.ApplicationModels.AuthorizationApplicationModelProvider
Microsoft.AspNetCore.Cors.Infrastructure.ICorsServiceTransientMicrosoft.AspNetCore.Cors.Infrastructure.CorsService
Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProviderTransientMicrosoft.AspNetCore.Cors.Infrastructure.DefaultCorsPolicyProvider
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.Cors.CorsApplicationModelProvider
Microsoft.AspNetCore.Mvc.Cors.CorsAuthorizationFilterTransientMicrosoft.AspNetCore.Mvc.Cors.CorsAuthorizationFilter
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcOptions, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.MvcDataAnnotationsMvcOptionsSetup
Microsoft.AspNetCore.Mvc.DataAnnotations.IValidationAttributeAdapterProviderSingletonMicrosoft.AspNetCore.Mvc.DataAnnotations.ValidationAttributeAdapterProvider
Microsoft.AspNetCore.Mvc.Formatters.FormatFilterSingletonMicrosoft.AspNetCore.Mvc.Formatters.FormatFilter
Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorChangeProviderSingletonMicrosoft.AspNetCore.Mvc.HotReload.HotReloadService
Microsoft.AspNetCore.DataProtection.Internal.IActivatorSingletonMicrosoft.AspNetCore.DataProtection.TypeForwardingActivator
Microsoft.AspNetCore.DataProtection.IRegistryPolicyResolverSingletonMicrosoft.AspNetCore.DataProtection.RegistryPolicyResolver
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.DataProtection.KeyManagement.KeyManagementOptions, Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.DataProtection.Internal.KeyManagementOptionsSetup
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.DataProtection.DataProtectionOptions, Microsoft.AspNetCore.DataProtection, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.DataProtection.Internal.DataProtectionOptionsSetup
Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyManagerSingletonMicrosoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager
Microsoft.AspNetCore.DataProtection.Infrastructure.IApplicationDiscriminatorSingletonMicrosoft.AspNetCore.DataProtection.Internal.HostingApplicationDiscriminator
Microsoft.Extensions.Hosting.IHostedServiceSingletonMicrosoft.AspNetCore.DataProtection.Internal.DataProtectionHostedService
Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IDefaultKeyResolverSingletonMicrosoft.AspNetCore.DataProtection.KeyManagement.DefaultKeyResolver
Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRingProviderSingletonMicrosoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider
Microsoft.AspNetCore.DataProtection.IDataProtectionProviderSingleton
Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolverSingletonMicrosoft.AspNetCore.DataProtection.XmlEncryption.CertificateResolver
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions, Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Antiforgery.AntiforgeryOptionsSetup
Microsoft.AspNetCore.Antiforgery.IAntiforgerySingletonMicrosoft.AspNetCore.Antiforgery.DefaultAntiforgery
Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenGeneratorSingletonMicrosoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenGenerator
Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenSerializerSingletonMicrosoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer
Microsoft.AspNetCore.Antiforgery.IAntiforgeryTokenStoreSingletonMicrosoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenStore
Microsoft.AspNetCore.Antiforgery.IClaimUidExtractorSingletonMicrosoft.AspNetCore.Antiforgery.DefaultClaimUidExtractor
Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProviderSingletonMicrosoft.AspNetCore.Antiforgery.DefaultAntiforgeryAdditionalDataProvider
Microsoft.Extensions.ObjectPool.ObjectPool`1[[Microsoft.AspNetCore.Antiforgery.AntiforgerySerializationContext, Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
System.Text.Encodings.Web.HtmlEncoderSingleton
System.Text.Encodings.Web.JavaScriptEncoderSingleton
System.Text.Encodings.Web.UrlEncoderSingleton
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcViewOptions, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.MvcViewOptionsSetup
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcOptions, Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.TempDataMvcOptionsSetup
Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngineSingletonMicrosoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.ViewResult, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.PartialViewResult, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.PartialViewResultExecutor
Microsoft.AspNetCore.Mvc.Controllers.IControllerPropertyActivatorTransientMicrosoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionaryControllerPropertyActivator
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelperTransientMicrosoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper`1TransientMicrosoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper`1
Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGeneratorSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.DefaultHtmlGenerator
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProviderSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProviderSingleton
Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProviderSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.DefaultValidationHtmlAttributeProvider
Microsoft.AspNetCore.Mvc.Rendering.IJsonHelperSingletonMicrosoft.AspNetCore.Mvc.Rendering.SystemTextJsonHelper
Microsoft.AspNetCore.Mvc.ViewFeatures.ServerComponentSerializerSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.ServerComponentSerializer
Microsoft.AspNetCore.Mvc.ViewFeatures.WebAssemblyComponentSerializerSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.WebAssemblyComponentSerializer
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelectorSingletonMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentSelector
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentFactorySingletonMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentFactory
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivatorSingletonMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentActivator
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProviderSingletonMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentDescriptorCollectionProvider
Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[[Microsoft.AspNetCore.Mvc.ViewComponentResult, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]SingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.ViewComponentResultExecutor
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentInvokerCacheSingletonMicrosoft.AspNetCore.Mvc.ViewComponents.ViewComponentInvokerCache
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorProviderTransientMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentDescriptorProvider
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactorySingletonMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvokerFactory
Microsoft.AspNetCore.Mvc.IViewComponentHelperTransientMicrosoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.TempDataApplicationModelProvider
Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelProviderTransientMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.ViewDataAttributeApplicationModelProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilterSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter
Microsoft.AspNetCore.Mvc.ViewFeatures.IComponentRendererScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.ComponentRenderer
Microsoft.AspNetCore.Mvc.ViewFeatures.StaticComponentRendererScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.StaticComponentRenderer
Microsoft.AspNetCore.Components.Rendering.HtmlRendererScopedMicrosoft.AspNetCore.Components.Rendering.HtmlRenderer
Microsoft.AspNetCore.Components.NavigationManagerScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.HttpNavigationManager
Microsoft.JSInterop.IJSRuntimeScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.UnsupportedJavaScriptRuntime
Microsoft.AspNetCore.Components.Routing.INavigationInterceptionScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.UnsupportedNavigationInterception
Microsoft.AspNetCore.Components.Infrastructure.ComponentStatePersistenceManagerScopedMicrosoft.AspNetCore.Components.Infrastructure.ComponentStatePersistenceManager
Microsoft.AspNetCore.Components.PersistentComponentStateScoped
Microsoft.AspNetCore.Components.Web.IErrorBoundaryLoggerScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.PrerenderingErrorBoundaryLogger
Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ControllerSaveTempDataPropertyFilterTransientMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.ControllerSaveTempDataPropertyFilter
Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProviderSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.TempDataSerializerSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.DefaultTempDataSerializer
Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilterSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilter
Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilterSingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilter
Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactorySingletonMicrosoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionaryFactory
System.Buffers.ArrayPool`1[[Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.ViewBufferValue, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]Singleton
Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScopeScopedMicrosoft.AspNetCore.Mvc.ViewFeatures.Buffers.MemoryPoolViewBufferScope
Microsoft.AspNetCore.Mvc.Razor.RazorHotReloadSingletonMicrosoft.AspNetCore.Mvc.Razor.RazorHotReload
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.MvcViewOptions, Microsoft.AspNetCore.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.Extensions.DependencyInjection.MvcRazorMvcViewOptionsSetup
Microsoft.Extensions.Options.IConfigureOptions`1[[Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions, Microsoft.AspNetCore.Mvc.Razor, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]TransientMicrosoft.AspNetCore.Mvc.Razor.RazorViewEngineOptionsSetup
Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngineSingletonMicrosoft.AspNetCore.Mvc.Razor.RazorViewEngine
Microsoft.AspNetCore.Mvc.Razor.Compilation.IViewCompilerProviderSingletonMicrosoft.AspNetCore.Mvc.Razor.Compilation.DefaultViewCompilerProvider
Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProviderTransientMicrosoft.AspNetCore.Mvc.Razor.Compilation.DefaultRazorPageFactoryProvider
Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivatorSingletonMicrosoft.AspNetCore.Mvc.Razor.RazorPageActivator
Microsoft.AspNetCore.Mvc.Razor.ITagHelperActivatorSingletonMicrosoft.AspNetCore.Mvc.Razor.Infrastructure.DefaultTagHelperActivator
Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentPropertyActivatorSingletonMicrosoft.AspNetCore.Mvc.Razor.TagHelpers.TagHelperComponentPropertyActivator
Microsoft.AspNetCore.Mvc.Razor.ITagHelperFactorySingletonMicrosoft.AspNetCore.Mvc.Razor.DefaultTagHelperFactory
Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManagerScopedMicrosoft.AspNetCore.Mvc.Razor.TagHelperComponentManager
Microsoft.Extensions.Caching.Memory.IMemoryCacheSingletonMicrosoft.Extensions.Caching.Memory.MemoryCache
Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProviderSingletonMicrosoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProviderSingletonMicrosoft.AspNetCore.Mvc.Razor.Infrastructure.DefaultFileVersionProvider
Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperStorageSingletonMicrosoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperStorage
Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperFormatterSingletonMicrosoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperFormatter
Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperServiceSingletonMicrosoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperService
Microsoft.Extensions.Caching.Distributed.IDistributedCacheSingletonMicrosoft.Extensions.Caching.Distributed.MemoryDistributedCache
Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperMemoryCacheFactorySingletonMicrosoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperMemoryCacheFactory
Microsoft.Extensions.Hosting.IHostedServiceSingletonMicrosoft.AspNetCore.Hosting.GenericWebHostService

码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
 楼主| 发表于 2024-9-27 15:40:32 | 显示全部楼层
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>()   中 IHttpContextAccessor 是单例
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-10-8 09:57

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表