55 references to TryAdd
Microsoft.AspNetCore.Authorization (5)
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);
113TryAdd(collection, descriptor);
134TryAdd(collection, descriptor);
155TryAdd(collection, descriptor);
202services.TryAdd(ServiceDescriptor.Transient(implementationFactory));
219TryAdd(collection, descriptor);
240TryAdd(collection, descriptor);
261TryAdd(collection, descriptor);
308services.TryAdd(ServiceDescriptor.Scoped(implementationFactory));
325TryAdd(collection, descriptor);
346TryAdd(collection, descriptor);
367TryAdd(collection, descriptor);
416TryAdd(collection, descriptor);
432services.TryAdd(ServiceDescriptor.Singleton(implementationFactory));
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (13)
28ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
51ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
74ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
125services.TryAdd(ServiceDescriptor.KeyedTransient(serviceKey, implementationFactory));
144ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
167ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
190ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
241services.TryAdd(ServiceDescriptor.KeyedScoped(serviceKey, implementationFactory));
260ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
283ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
306ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
358ServiceCollectionDescriptorExtensions.TryAdd(collection, descriptor);
376services.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)