56 references to TryAdd
Microsoft.AspNetCore.Authorization (6)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Localization (3)
Microsoft.AspNetCore.Routing (1)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.DependencyInjection.Abstractions (27)
Extensions\ServiceCollectionDescriptorExtensions.cs (14)
95collection.TryAdd(d);
114TryAdd(collection, descriptor);
136TryAdd(collection, descriptor);
158TryAdd(collection, descriptor);
208services.TryAdd(ServiceDescriptor.Transient(implementationFactory));
226TryAdd(collection, descriptor);
248TryAdd(collection, descriptor);
270TryAdd(collection, descriptor);
320services.TryAdd(ServiceDescriptor.Scoped(implementationFactory));
338TryAdd(collection, descriptor);
360TryAdd(collection, descriptor);
382TryAdd(collection, descriptor);
434TryAdd(collection, descriptor);
451services.TryAdd(ServiceDescriptor.Singleton(implementationFactory));
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (13)
29ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
53ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
77ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
131services.TryAdd(ServiceDescriptor.KeyedTransient(serviceKey, implementationFactory));
151ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
175ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
199ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
253services.TryAdd(ServiceDescriptor.KeyedScoped(serviceKey, implementationFactory));
273ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
297ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
321ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
376ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
395services.TryAdd(ServiceDescriptor.KeyedSingleton(serviceKey, implementationFactory));
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Options (5)
Microsoft.Extensions.Options.Contextual (3)
Microsoft.Maui (2)