{"id":598,"date":"2010-05-04T12:33:00","date_gmt":"2010-05-04T12:33:00","guid":{"rendered":"\/blogs\/bobb\/post\/This-posting-is-a-journey-through-StreamInsight-10-APIs-undertaking-by-porting-the-CTP3-samples-Part-3.aspx"},"modified":"2014-07-31T09:15:31","modified_gmt":"2014-07-31T16:15:31","slug":"recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/","title":{"rendered":"Recompiling the StreamInsight CTP3 samples for 1.0 &#8211; Part 3"},"content":{"rendered":"<p>\nThis posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. Part 3.\n<\/p>\n<p>\nIn the StreamInsight CTPs, there existed&nbsp;three&nbsp;methods to code applications. My original post describes the current state of Observable. That leaves us with &quot;Explicit Server&quot; and &quot;Implicit Server&quot;.&nbsp;Coding using the &quot;Implicit Server&quot; method,&nbsp;&nbsp;you&#39;d make (basically) two main calls. You&#39;d create a CepStream with input provider information. Then use stream.ToQuery(&#8230;) specifying output provider information. This call would not only bind the query, but create a Server and Application object under the covers. Since (I&#39;m not sure this is the reasoning) your Server object must specify the correct StreamInsight instance you named at install time, this would be more difficult to abstract.\n<\/p>\n<p>\nSo&#8230;.even using the CepStream.Create() and ToQuery method for binding a query to a query template, you still must instanciate your own Server and Application instance. That&#39;s what the error message was telling me, unless I missed something obvious. So,\n<\/p>\n<p>\nIn ImplicitServer.cs:\n<\/p>\n<p>\n1. Added these lines at the beginning. Remember &quot;default&quot; is my StreamInsight instance name from installation. Use your own instance name.\n<\/p>\n<p>\nServer server = Server.Create(&quot;default&quot;); <br \/>\nApplication application = server.CreateApplication(&quot;ImplicitServer&quot;);\n<\/p>\n<p>\n2. Pass the application instance into the ConsumeQuery method.\n<\/p>\n<p>\n3. In ConsumeQuery, use the overload of ToQuery(&#8230;) that specifies the application as the first parameter. Just like the error message said to.\n<\/p>\n<p>\nAnd voila, ImplicitServer works too! To conclude this series, I need to also address the SQLApp example, the one that uses the StreamInsight sample input and output providers over SQL Server. This example (in SQLApp.cs) uses the &quot;implicit server&quot; method of coding query binding, so you&#39;ll need to make analogous changes like you did to ImplicitServer.cs (above).\n<\/p>\n<p>\nAnd you have working example code with StreamInsight 1.0 RTM.&nbsp;Now I&#39;m &quot;caught up&quot;, time to look at the new stuff.&nbsp;And (maybe) determine how to use Reactive Framework for Observable providers and how this all fits together. Maybe starting with my good friend Bart De Smet&#39;s blog for that.\n<\/p>\n<p>\nCheers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. Part 3. In the StreamInsight CTPs, there existed&nbsp;three&nbsp;methods to code applications. My original post describes the current state of Observable. That leaves us with &quot;Explicit Server&quot; and &quot;Implicit Server&quot;.&nbsp;Coding using the &quot;Implicit Server&quot; method,&nbsp;&nbsp;you&#39;d make (basically) two main calls. You&#39;d [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,39],"tags":[],"class_list":["post-598","post","type-post","status-publish","format-standard","hentry","category-sql-server-2008-r2","category-streaminsight"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. Part 3. In the StreamInsight CTPs, there existed&nbsp;three&nbsp;methods to code applications. My original post describes the current state of Observable. That leaves us with &quot;Explicit Server&quot; and &quot;Implicit Server&quot;.&nbsp;Coding using the &quot;Implicit Server&quot; method,&nbsp;&nbsp;you&#039;d make (basically) two main calls. You&#039;d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2010-05-04T12:33:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-07-31T16:15:31+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/\",\"name\":\"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2010-05-04T12:33:00+00:00\",\"dateModified\":\"2014-07-31T16:15:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server 2008 R2\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2008-r2\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Recompiling the StreamInsight CTP3 samples for 1.0 &#8211; Part 3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/","og_locale":"en_US","og_type":"article","og_title":"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin","og_description":"This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. Part 3. In the StreamInsight CTPs, there existed&nbsp;three&nbsp;methods to code applications. My original post describes the current state of Observable. That leaves us with &quot;Explicit Server&quot; and &quot;Implicit Server&quot;.&nbsp;Coding using the &quot;Implicit Server&quot; method,&nbsp;&nbsp;you&#39;d make (basically) two main calls. You&#39;d [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/","og_site_name":"Bob Beauchemin","article_published_time":"2010-05-04T12:33:00+00:00","article_modified_time":"2014-07-31T16:15:31+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/","name":"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 3 - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2010-05-04T12:33:00+00:00","dateModified":"2014-07-31T16:15:31+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"SQL Server 2008 R2","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2008-r2\/"},{"@type":"ListItem","position":3,"name":"Recompiling the StreamInsight CTP3 samples for 1.0 &#8211; Part 3"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}