11 references to Transient
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
40services.Add(ServiceDescriptor.Transient(serviceType.Key, mockType)); 68services.Add(ServiceDescriptor.Transient(serviceType, mockType));
Microsoft.AspNetCore.Mvc.Localization (1)
MvcLocalizationServices.cs (1)
42services.TryAdd(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(HtmlLocalizer<>)));
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationServiceCollectionExtensionsTest.cs (2)
39collection.Add(ServiceDescriptor.Transient(typeof(IHtmlLocalizer<>), typeof(TestHtmlLocalizer<>))); 40collection.Add(ServiceDescriptor.Transient(typeof(IViewLocalizer), typeof(TestViewLocalizer)));
Microsoft.AspNetCore.Mvc.Test (2)
MvcServiceCollectionExtensionsTest.cs (2)
65services.Add(ServiceDescriptor.Transient(serviceType.Key, mockType)); 149services.Add(ServiceDescriptor.Transient(serviceType, mockType));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.cs (2)
112var descriptor = ServiceDescriptor.Transient(service, service); 133var descriptor = ServiceDescriptor.Transient(service, implementationType);
Microsoft.Extensions.Http (1)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (1)
47services.TryAdd(ServiceDescriptor.Transient(typeof(ITypedHttpClientFactory<>), typeof(DefaultTypedHttpClientFactory<>)));
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
29services.TryAdd(ServiceDescriptor.Transient(typeof(IOptionsFactory<>), typeof(OptionsFactory<>)));