18 lines
516 B
C#
18 lines
516 B
C#
|
|
using BotSharp.Plugin.ChatHub.Hooks;
|
||
|
|
using Microsoft.Extensions.Configuration;
|
||
|
|
|
||
|
|
namespace BotSharp.Plugin.ChatHub;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// The dialogue channel connects users, AI assistants and customer service representatives.
|
||
|
|
/// </summary>
|
||
|
|
public class ChatHubPlugin : IBotSharpPlugin
|
||
|
|
{
|
||
|
|
public string Name => "Chat Hub";
|
||
|
|
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
||
|
|
{
|
||
|
|
// Register hooks
|
||
|
|
services.AddScoped<IConversationHook, ChatHubConversationHook>();
|
||
|
|
}
|
||
|
|
}
|