{"id":18656,"date":"2018-03-06T15:34:00","date_gmt":"2018-03-06T15:34:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=18656"},"modified":"2019-02-14T20:18:27","modified_gmt":"2019-02-15T03:18:27","slug":"self-hosting-a-bot-in-service-fabric-with-katana","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/self-hosting-a-bot-in-service-fabric-with-katana\/","title":{"rendered":"Self-Hosting a Bot in Service Fabric with Katana"},"content":{"rendered":"<p>Read on to learn how to use the Katana-based OWIN stack within Service Fabric. In this post, Premier Developer Consultant <a target=\"_blank\" href=\"https:\/\/www.blogger.com\/profile\/02762428985659404752\" rel=\"noopener\">Megan Meyer<\/a> walks through how to host the Bot Builder SDK Echo Bot in Service Fabric.<\/p>\n<hr \/>\n<p>I recently participated in a small hackathon with some Microsoft ninjas where we were presented with the problem, <i>How do you host a bot in Service Fabric?<\/i> It seemed like an easy problem that had probably already been solved, but it wasn&#8217;t as straightforward as we thought it might be.<\/p>\n<p>At its core from a technology perspective, a bot is really just a Web API. We didn&#8217;t want to actually host IIS on Service Fabric, so we knew we would want to self-host. If you use the built-in Stateless Service ASP.NET Core template, you&#8217;ll get a great Web API implementation that&#8217;s wired up with a <a target=\"_blank\" href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/api\/microsoft.servicefabric.services.communication.aspnetcore.kestrelcommunicationlistener?view=azure-dotnet\" rel=\"noopener\">KestrelCommunictionListener<\/a> for Service Fabric. But what if you want to use Katana &#8212; Microsoft&#8217;s .NET Framework OWIN implementation?<\/p>\n<p>&nbsp;<\/p>\n<p>To understand how to use Katana within Service Fabric, continue reading on Megan\u2019s blog <a target=\"_blank\" href=\"http:\/\/blog.awkward.industries\/2017\/12\/self-hosting-bot-in-service-fabric-with.html\" rel=\"noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read on to learn how to use the Katana-based OWIN stack within Service Fabric. In this post, Premier Developer Consultant Megan Meyer walks through how to host the Bot Builder SDK Echo Bot in Service Fabric. I recently participated in a small hackathon with some Microsoft ninjas where we were presented with the problem, How [&hellip;]<\/p>\n","protected":false},"author":582,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[56,57,47,31],"class_list":["post-18656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-permierdev","tag-bots","tag-katana","tag-megan-meyer","tag-service-fabric"],"acf":[],"blog_post_summary":"<p>Read on to learn how to use the Katana-based OWIN stack within Service Fabric. In this post, Premier Developer Consultant Megan Meyer walks through how to host the Bot Builder SDK Echo Bot in Service Fabric. I recently participated in a small hackathon with some Microsoft ninjas where we were presented with the problem, How [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/18656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=18656"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/18656\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=18656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=18656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=18656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}