161 references to TryAddSingleton
Microsoft.AspNetCore.Antiforgery (7)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.DataProtection (8)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (30)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (29)
155services.TryAddSingleton<IActionDescriptorCollectionProvider, DefaultActionDescriptorCollectionProvider>();
160services.TryAddSingleton<IActionSelector, ActionSelector>();
173services.TryAddSingleton<IControllerFactory, DefaultControllerFactory>();
178services.TryAddSingleton<IControllerFactoryProvider, ControllerFactoryProvider>();
179services.TryAddSingleton<IControllerActivatorProvider, ControllerActivatorProvider>();
187services.TryAddSingleton<IActionInvokerFactory, ActionInvokerFactory>();
195services.TryAddSingleton<IActionResultTypeMapper, ActionResultTypeMapper>();
208services.TryAddSingleton<IModelMetadataProvider, DefaultModelMetadataProvider>();
214services.TryAddSingleton<IModelBinderFactory, ModelBinderFactory>();
227services.TryAddSingleton<MvcMarkerService, MvcMarkerService>();
228services.TryAddSingleton<ITypeActivatorCache, TypeActivatorCache>();
229services.TryAddSingleton<IUrlHelperFactory, UrlHelperFactory>();
230services.TryAddSingleton<IHttpRequestStreamReaderFactory, MemoryPoolHttpRequestStreamReaderFactory>();
231services.TryAddSingleton<IHttpResponseStreamWriterFactory, MemoryPoolHttpResponseStreamWriterFactory>();
234services.TryAddSingleton<OutputFormatterSelector, DefaultOutputFormatterSelector>();
235services.TryAddSingleton<IActionResultExecutor<ObjectResult>, ObjectResultExecutor>();
236services.TryAddSingleton<IActionResultExecutor<PhysicalFileResult>, PhysicalFileResultExecutor>();
237services.TryAddSingleton<IActionResultExecutor<VirtualFileResult>, VirtualFileResultExecutor>();
238services.TryAddSingleton<IActionResultExecutor<FileStreamResult>, FileStreamResultExecutor>();
239services.TryAddSingleton<IActionResultExecutor<FileContentResult>, FileContentResultExecutor>();
240services.TryAddSingleton<IActionResultExecutor<RedirectResult>, RedirectResultExecutor>();
241services.TryAddSingleton<IActionResultExecutor<LocalRedirectResult>, LocalRedirectResultExecutor>();
242services.TryAddSingleton<IActionResultExecutor<RedirectToActionResult>, RedirectToActionResultExecutor>();
243services.TryAddSingleton<IActionResultExecutor<RedirectToRouteResult>, RedirectToRouteResultExecutor>();
244services.TryAddSingleton<IActionResultExecutor<RedirectToPageResult>, RedirectToPageResultExecutor>();
245services.TryAddSingleton<IActionResultExecutor<ContentResult>, ContentResultExecutor>();
246services.TryAddSingleton<IActionResultExecutor<JsonResult>, SystemTextJsonResultExecutor>();
247services.TryAddSingleton<IClientErrorFactory, ProblemDetailsClientErrorFactory>();
276services.TryAddSingleton<ProblemDetailsFactory, DefaultProblemDetailsFactory>();
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.Razor (8)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.RazorPages (7)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (15)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (15)
144services.TryAddSingleton<ICompositeViewEngine, CompositeViewEngine>();
145services.TryAddSingleton<IActionResultExecutor<ViewResult>, ViewResultExecutor>();
146services.TryAddSingleton<IActionResultExecutor<PartialViewResult>, PartialViewResultExecutor>();
158services.TryAddSingleton<IHtmlGenerator, DefaultHtmlGenerator>();
162services.TryAddSingleton<ValidationHtmlAttributeProvider, DefaultValidationHtmlAttributeProvider>();
164services.TryAddSingleton<IJsonHelper, SystemTextJsonHelper>();
171services.TryAddSingleton<IViewComponentSelector, DefaultViewComponentSelector>();
172services.TryAddSingleton<IViewComponentFactory, DefaultViewComponentFactory>();
173services.TryAddSingleton<IViewComponentActivator, DefaultViewComponentActivator>();
174services.TryAddSingleton<
177services.TryAddSingleton<IActionResultExecutor<ViewComponentResult>, ViewComponentResultExecutor>();
181services.TryAddSingleton<IViewComponentInvokerFactory, DefaultViewComponentInvokerFactory>();
195services.TryAddSingleton<ITempDataProvider, CookieTempDataProvider>();
196services.TryAddSingleton<TempDataSerializer, DefaultTempDataSerializer>();
207services.TryAddSingleton<ITempDataDictionaryFactory, TempDataDictionaryFactory>();
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.RequestDecompression (2)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression (2)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Server.Kestrel (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.DotNet.Build.Tasks.Feed (14)
Microsoft.DotNet.VersionTools.Tasks (6)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Diagnostics (3)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Maui.Controls (1)