0

What kind of design pattern is the Microsoft BotBuilder modeled after? It seems like an single monolithic SOA application? Are there multiple designs used for the main portion of the builder?

2
  • Obvious fake accounts are obvious.
    – Krythic
    Sep 11, 2016 at 1:56
  • I must be fake because I asked a question, yet I still asked the question and nobody responded...
    – jpop
    Sep 12, 2016 at 15:36

2 Answers 2

0

The Bot Builder SDK uses several design patterns. For example, the IPostToBot middleware and IBotToUser interfaces are often augmented by decorators.

The composition root (following the terminology in this book) is where we use instantiate the services registered in the Autofac dependency injeciton container. This composition root could be unified with the hosting ASP.NET dependency injection container as well. In general, we try to avoid the service locator anti-pattern.

0

The pattern used for the bot framework itself is the Composition Root pattern, and they are using an inversion of control framework called "autofac" for it.

1
  • I've never heard of it before. Thank you.
    – jpop
    Sep 19, 2016 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.