C# 如何向Azure Service Bot注册应用程序级事件

C# 如何向Azure Service Bot注册应用程序级事件,c#,azure,botframework,azure-bot-service,C#,Azure,Botframework,Azure Bot Service,我需要在聊天机器人中记录对话。这是我会放在Global.asax中的代码,如果我有一个,但是因为我使用的是Bot服务,所以我不能这样做 private void RegisterBotModules() { var storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("conversations_AzureStorageConnectionString")); var b

我需要在聊天机器人中记录对话。这是我会放在Global.asax中的代码,如果我有一个,但是因为我使用的是Bot服务,所以我不能这样做

private void RegisterBotModules()
{
    var storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("conversations_AzureStorageConnectionString"));

    var builder = new ContainerBuilder();
    builder.RegisterModule(new TableLoggerModule(storageAccount, "conversations"));
    builder.Update(Conversation.Container);
}

如何使用bot服务实现同样的效果

你为什么不能使用bot builder而不是bot服务?我使用的是mac,所以在azure中创建一个bot并直接从浏览器开始编码是最简单的。