我将Azure Bot Service的Microsoft文档中的示例代码插入哪个文件中? [英] In which file I insert the sample code from the Microsoft documentation of the Azure Bot Service?

查看:56
本文介绍了我将Azure Bot Service的Microsoft文档中的示例代码插入哪个文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一些实践,在这些实践中,我被分配来在技术支持网站中创建ChatBot.我在C#中本地下载了模板,但阅读了文档,生成了问候语,放了按钮,....我不太了解,我不知道将来自示例的代码示例放到哪里,来吧,我一团糟.这是我的第一份真正的工作,我只用Java开发了非常小的Web应用程序,所以如果有人可以指导我,那将是很棒的.

I'm starting some practices in which I have been assigned to create a ChatBot in a technical support website. I downloaded the template locally in C # but reading the documentation, to generate greetings, put buttons, .... I do not understand it well, I do not know where to put the examples of code that come from example, come on, I'm done a mess. This is my first real job, I have only developed very small Web applications in Java, so if someone can guide me it would be wonderful.

推荐答案

我认为@Hessel指向的视频是一个不错的开始,但是请注意,这是从2018年8月开始的,此后许多Botframework都发生了变化.这就是我要学习的方法:

I think the video that @Hessel pointed to is a good start, but note that it's from August 2018 and a lot of the botframework has changed since then. Here's how I would go about learning this:

  1. 通过通读上一步中生成的每个注释和代码行,并确保您准确了解其工作方式以及文件的布局方式.

    Read through each comment and line of code generated in the previous step and make sure you understand exactly how it works and how the files are laid out.

    阅读

    Read How Bots Work, which is a higher-level overview of how bots work, and try to figure out how EchoBot works within that context.

    再次执行步骤1,这次是CoreBot,然后再次阅读代码

    Go through Step 1 again, this time with CoreBot and again read through the code

    通读其余的

    Read through the remaining Concepts (on the left). These are pretty high-level so don't expect to understand it all.

    其他参考文献:

    • Docs: How to Develop. When you want to add a feature to your bot, start here. The subject areas on the left are walk-throughs for implementing/doing each thing.

    文档:

    Docs: Design. Useful for figuring out how to design an aspect of your bot, from a UX standpoint.

    文档: Botframework模拟器中测试您的机器人并调试代码.

    Docs: Debug a Bot. How to test your bot in Botframework Emulator and debug your code.

    C#参考.如果不确定某个类的作用(例如ActivityHandler),那么这里是查看其作用和参数要求的好地方.

    C# Reference. If you're not sure what one of the classes does (e.g. ActivityHandler), this is a good place to look to see what it does and what its parameter requirements are.

    Dotnet SDK存储库.如果您确实需要深入研究某个特定类的功能,请进入/libraries,然后进入相应的文件夹以读取诸如ActivityHandler之类的实际文件.如果您需要更深入的了解,其中的许多评论都很好.

    Dotnet SDK Repo. If you really need to dig into what a particular Class does, go into /libraries and then the appropriate folder to read the actual files for something like ActivityHandler. Many of them are well-commented if you need a deeper understanding.

    重要说明:示例回购协议正在进行主要更新.一些文档可能无法准确反映示例中的代码.在大多数情况下,master分支中的样本应该很好.但是,您可能希望使用 samples-work-in-progress 分支.

    Important Note: The Samples repo is undergoing a major update. Some of the docs may not accurately reflect the code in the samples. For the most part, the samples in the master branch should be fine. However, you may wish to use samples from the samples-work-in-progress branch.

    这篇关于我将Azure Bot Service的Microsoft文档中的示例代码插入哪个文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆