3 instantiations of HttpClientKeyedLifetime
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (2)
699registry.DefaultKeyedLifetime = new HttpClientKeyedLifetime(lifetime); 709clientLifetime = new HttpClientKeyedLifetime(name, lifetime);
DependencyInjection\HttpClientKeyedLifetime.cs (1)
12public static readonly HttpClientKeyedLifetime Disabled = new(null!, null!, null!);
8 references to HttpClientKeyedLifetime
Microsoft.Extensions.Http (8)
DependencyInjection\HttpClientBuilderExtensions.cs (4)
704if (registry.KeyedLifetimeMap.TryGetValue(name, out HttpClientKeyedLifetime? clientLifetime)) 740registry.DefaultKeyedLifetime = HttpClientKeyedLifetime.Disabled; 744if (registry.KeyedLifetimeMap.TryGetValue(name, out HttpClientKeyedLifetime? clientLifetime)) 748registry.KeyedLifetimeMap[name] = HttpClientKeyedLifetime.Disabled;
DependencyInjection\HttpClientKeyedLifetime.cs (2)
12public static readonly HttpClientKeyedLifetime Disabled = new(null!, null!, null!); 84if (!registry.KeyedLifetimeMap.TryGetValue(name, out HttpClientKeyedLifetime? registration))
DependencyInjection\HttpClientMappingRegistry.cs (2)
18public Dictionary<string, HttpClientKeyedLifetime> KeyedLifetimeMap { get; } = new(); 20public HttpClientKeyedLifetime? DefaultKeyedLifetime { get; set; }