From 572182b9fbb0254c48ba015afe3fe3ad5c3af83e Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Thu, 15 Jun 2023 13:10:06 -0500 Subject: [PATCH] Fix spelling error --- .../Configuration/BffServiceCollectionExtensions.cs | 2 +- src/Duende.Bff/ConfigureUserTokenManagmentOptions.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Duende.Bff/Configuration/BffServiceCollectionExtensions.cs b/src/Duende.Bff/Configuration/BffServiceCollectionExtensions.cs index 41b974b6..27656177 100644 --- a/src/Duende.Bff/Configuration/BffServiceCollectionExtensions.cs +++ b/src/Duende.Bff/Configuration/BffServiceCollectionExtensions.cs @@ -33,7 +33,7 @@ public static BffBuilder AddBff(this IServiceCollection services, Action, ConfigureUserTokenManagmentOptions>(); + services.AddSingleton, ConfigureUserTokenManagementOptions>(); services.AddTransient(); services.TryAddSingleton(); diff --git a/src/Duende.Bff/ConfigureUserTokenManagmentOptions.cs b/src/Duende.Bff/ConfigureUserTokenManagmentOptions.cs index a8e0b56b..68cf4042 100644 --- a/src/Duende.Bff/ConfigureUserTokenManagmentOptions.cs +++ b/src/Duende.Bff/ConfigureUserTokenManagmentOptions.cs @@ -11,16 +11,16 @@ namespace Microsoft.AspNetCore.Builder; /// Configures the Duende.AccessTokenManagement's UserTokenManagementOptions /// based on the BFF's options. /// -public class ConfigureUserTokenManagmentOptions : IConfigureOptions +public class ConfigureUserTokenManagementOptions : IConfigureOptions { private readonly BffOptions _bffOptions; /// - /// Creates an instance of the + /// Creates an instance of the /// class. /// /// - public ConfigureUserTokenManagmentOptions(IOptions bffOptions) + public ConfigureUserTokenManagementOptions(IOptions bffOptions) { _bffOptions = bffOptions.Value; }