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