Skip to content

Commit c49fcc5

Browse files
committed
minor change
1 parent f355aa3 commit c49fcc5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Infrastructure/BotSharp.Core/Conversations/ConversationPlugin.cs

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using BotSharp.Abstraction.Files;
2+
using BotSharp.Abstraction.Google.Settings;
23
using BotSharp.Abstraction.Instructs;
34
using BotSharp.Abstraction.Messaging;
45
using BotSharp.Abstraction.Plugins.Models;
@@ -34,6 +35,12 @@ public void RegisterDI(IServiceCollection services, IConfiguration config)
3435
return settingService.Bind<ConversationSetting>("Conversation");
3536
});
3637

38+
services.AddScoped(provider =>
39+
{
40+
var settingService = provider.GetRequiredService<ISettingService>();
41+
return settingService.Bind<GoogleApiSettings>("GoogleApi");
42+
});
43+
3744
services.AddScoped<IConversationStorage, ConversationStorage>();
3845
services.AddScoped<IConversationService, ConversationService>();
3946
services.AddScoped<IConversationStateService, ConversationStateService>();

0 commit comments

Comments
 (0)