29 references to TryAddTransient
Microsoft.AspNetCore.Authorization.Policy (2)
PolicyServiceCollectionExtensions.cs (2)
33services.TryAddTransient<IPolicyEvaluator, PolicyEvaluator>(); 34services.TryAddTransient<IAuthorizationMiddlewareResultHandler, AuthorizationMiddlewareResultHandler>();
Microsoft.AspNetCore.Identity (1)
IdentityBuilderExtensions.cs (1)
101builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>();
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
62builder.Services.TryAddTransient<IEmailSender, NoOpEmailSender>();
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
176services.TryAddTransient<IControllerActivator, DefaultControllerActivator>();
Microsoft.AspNetCore.Mvc.Cors (1)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (1)
72services.TryAddTransient<CorsAuthorizationFilter, CorsAuthorizationFilter>();
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Infrastructure\MvcEncodedTestFixtureOfT.cs (3)
19services.TryAddTransient<HtmlEncoder, HtmlTestEncoder>(); 20services.TryAddTransient<JavaScriptEncoder, JavaScriptTestEncoder>(); 21services.TryAddTransient<UrlEncoder, UrlTestEncoder>();
Microsoft.AspNetCore.Mvc.Razor (1)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
136services.TryAddTransient<IRazorPageFactoryProvider, DefaultRazorPageFactoryProvider>();
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (3)
156services.TryAddTransient<IHtmlHelper, HtmlHelper>(); 180services.TryAddTransient<IViewComponentDescriptorProvider, DefaultViewComponentDescriptorProvider>(); 182services.TryAddTransient<IViewComponentHelper, DefaultViewComponentHelper>();
Microsoft.AspNetCore.Routing (2)
DependencyInjection\RoutingServiceCollectionExtensions.cs (2)
49services.TryAddTransient<IInlineConstraintResolver, DefaultInlineConstraintResolver>(); 50services.TryAddTransient<ObjectPoolProvider, DefaultObjectPoolProvider>();
Microsoft.AspNetCore.Session (1)
SessionServiceCollectionExtensions.cs (1)
26services.TryAddTransient<ISessionStore, DistributedSessionStore>();
Microsoft.DotNet.Helix.Sdk (11)
CreateXHarnessAndroidWorkItems.cs (2)
48collection.TryAddTransient<IZipArchiveManager, ZipArchiveManager>(); 49collection.TryAddTransient<IFileSystem, FileSystem>();
CreateXHarnessAppleWorkItems.cs (2)
67collection.TryAddTransient<IZipArchiveManager, ZipArchiveManager>(); 68collection.TryAddTransient<IFileSystem, FileSystem>();
InstallDotNetTool.cs (3)
82collection.TryAddTransient<ICommandFactory, CommandFactory>(); 83collection.TryAddTransient<IFileSystem, FileSystem>(); 84collection.TryAddTransient<IHelpers, Arcade.Common.Helpers>();
ProvisioningProfileProvider.cs (4)
237collection.TryAddTransient<IHelpers, Arcade.Common.Helpers>(); 238collection.TryAddTransient<IFileSystem, FileSystem>(); 239collection.TryAddTransient<IZipArchiveManager, ZipArchiveManager>(); 240collection.TryAddTransient<IRetryHandler, ExponentialRetry>();
Microsoft.Extensions.Http (1)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
39services.TryAddTransient<HttpMessageHandlerBuilder, DefaultHttpMessageHandlerBuilder>();
Microsoft.Extensions.Options (1)
OptionsBuilderExtensions.cs (1)
29optionsBuilder.Services.TryAddTransient<IStartupValidator, StartupValidator>();