{"id":5140,"date":"2014-03-30T19:11:59","date_gmt":"2014-03-30T19:11:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-code-hosting-of-the-wf-with-wc-3-5-reciveactivity-in-windows-service-xp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:11:59","modified_gmt":"2014-03-30T19:11:59","slug":"how-to-code-hosting-of-the-wf-with-wc-3-5-reciveactivity-in-windows-service-xp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-code-hosting-of-the-wf-with-wc-3-5-reciveactivity-in-windows-service-xp-collection-of-common-programming-errors\/","title":{"rendered":"How to code hosting of the WF with WC 3.5 ReciveActivity in Windows Service (XP)?-Collection of common programming errors"},"content":{"rendered":"<p>You should be using the WorkflowServiceHost instead of the normal ServiceHost. The WorkflowServiceHost does all the usual WCF related stuff but also makes sure a workflow runtime is created and the required workflow routing environment is setup.<\/p>\n<p>See this blog post for how to do so. This second post show a bit more about how to change the configuration.<\/p>\n<p>BTW. In general you should be using the context bindings like the basicHttpContextBinding and wsHttpContextBinding as they pass the context information containing the workflow instanceId with the messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You should be using the WorkflowServiceHost instead of the normal ServiceHost. The WorkflowServiceHost does all the usual WCF related stuff but also makes sure a workflow runtime is created and the required workflow routing environment is setup. See this blog post for how to do so. This second post show a bit more about how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5140","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5140"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5140\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}