10 references to TryAddTransient
Microsoft.AspNetCore.Identity (1)
IdentityBuilderExtensions.cs (1)
100builder.Services.TryAddTransient(typeof(IEmailSender<>), typeof(DefaultMessageEmailSender<>));
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
63builder.Services.TryAddTransient(typeof(IEmailSender<>), typeof(DefaultMessageEmailSender<>));
Microsoft.AspNetCore.Mvc.Core (2)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
129builder.Services.TryAddTransient(controller, controller);
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
146builder.Services.TryAddTransient(controller, controller);
Microsoft.AspNetCore.Mvc.Razor (1)
DependencyInjection\TagHelpersAsServices.cs (1)
24services.TryAddTransient(type, type);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (1)
50builder.Services.TryAddTransient(viewComponent, viewComponent);
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
157services.TryAddTransient(typeof(IHtmlHelper<>), typeof(HtmlHelper<>));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.cs (2)
169TryAddTransient(collection, typeof(TService), typeof(TService)); 186TryAddTransient(collection, typeof(TService), typeof(TImplementation));
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
58services.TryAddTransient(typeof(IStringLocalizer<>), typeof(StringLocalizer<>));