Skip to content

Commit

Permalink
Merge pull request #101 from DuendeSoftware/revert-52-performance/reg…
Browse files Browse the repository at this point in the history
…ister-services-as-singleton

Revert "Changed service registrations from Transient to Singleton."
  • Loading branch information
josephdecock committed Apr 30, 2024
2 parents b242503 + 10c31e5 commit 8d2c405
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public static ClientCredentialsTokenManagementBuilder AddClientCredentialsTokenM
{
services.TryAddSingleton<ITokenRequestSynchronization, TokenRequestSynchronization>();

services.TryAddSingleton<IClientCredentialsTokenManagementService, ClientCredentialsTokenManagementService>();
services.TryAddSingleton<IClientCredentialsTokenCache, DistributedClientCredentialsTokenCache>();
services.TryAddSingleton<IClientCredentialsTokenEndpointService, ClientCredentialsTokenEndpointService>();
services.TryAddSingleton<IClientAssertionService, DefaultClientAssertionService>();

services.TryAddSingleton<IDPoPProofService, DefaultDPoPProofService>();
services.TryAddSingleton<IDPoPKeyStore, DefaultDPoPKeyStore>();
services.TryAddSingleton<IDPoPNonceStore, DistributedDPoPNonceStore>();
services.TryAddTransient<IClientCredentialsTokenManagementService, ClientCredentialsTokenManagementService>();
services.TryAddTransient<IClientCredentialsTokenCache, DistributedClientCredentialsTokenCache>();
services.TryAddTransient<IClientCredentialsTokenEndpointService, ClientCredentialsTokenEndpointService>();
services.TryAddTransient<IClientAssertionService, DefaultClientAssertionService>();

services.TryAddTransient<IDPoPProofService, DefaultDPoPProofService>();
services.TryAddTransient<IDPoPKeyStore, DefaultDPoPKeyStore>();
services.TryAddTransient<IDPoPNonceStore, DistributedDPoPNonceStore>();

services.AddHttpClient(ClientCredentialsTokenManagementDefaults.BackChannelHttpClientName);

Expand Down

0 comments on commit 8d2c405

Please sign in to comment.