Skip to content

Commit f355aa3

Browse files
committed
move google api setting
1 parent abf5194 commit f355aa3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Infrastructure/BotSharp.OpenAPI/BotSharpOpenApiExtensions.cs

-8
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
using Microsoft.OpenApi.Models;
1212
using Microsoft.IdentityModel.JsonWebTokens;
1313
using BotSharp.OpenAPI.BackgroundServices;
14-
using BotSharp.Abstraction.Settings;
15-
using BotSharp.Abstraction.Google.Settings;
1614

1715
namespace BotSharp.OpenAPI;
1816

@@ -34,12 +32,6 @@ public static IServiceCollection AddBotSharpOpenAPI(this IServiceCollection serv
3432
services.AddScoped<IUserIdentity, UserIdentity>();
3533
services.AddHostedService<ConversationTimeoutService>();
3634

37-
services.AddScoped(provider =>
38-
{
39-
var settingService = provider.GetRequiredService<ISettingService>();
40-
return settingService.Bind<GoogleApiSettings>("GoogleApi");
41-
});
42-
4335
// Add bearer authentication
4436
var schema = "MIXED_SCHEME";
4537
var builder = services.AddAuthentication(options =>

0 commit comments

Comments
 (0)