When working on the bot-zero-sharp project, we had the need to decouple the request handler and the creation of the chatbot. We like our request handlers to be automatically detected and added to our pipeline. In this article we’ll discuss how we use background services to create a chatbot that uses dependency injection.
When working on the bot-zero-sharp project, the need arose for better handling of enums decorated with a [Flag] attribute. In a previous article we explored how to use Handlebars.NET to generate JSON strings. In this article we’ll build further on that generator to add support for enums. We will also move away from the static JsonHandlebarsDotNet to an injectable version.
I ❤️ Handlebars! So I was very very very happy to see that Handlebars was ported to .NET! It is a mega flexible templating engine as it can easily be extended. I’m currently working on the bot-zero-sharp project and I need to parse objects via JSON templates to JSON strings. This blog will show how to instruct Handlebars to parse into JSON and add some nice error messages if your template fails.