{"id":600,"date":"2010-05-04T12:29:00","date_gmt":"2010-05-04T12:29:00","guid":{"rendered":"\/blogs\/bobb\/post\/Recompiling-the-StreamInsight-CTP3-samples-for-10-Part-1.aspx"},"modified":"2010-05-04T12:29:00","modified_gmt":"2010-05-04T12:29:00","slug":"recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/","title":{"rendered":"Recompiling the StreamInsight CTP3 samples for 1.0 &#8211; Part 1"},"content":{"rendered":"<p>\nThis posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples.\n<\/p>\n<p>\nThe first look at the errors produced by recompiling the CTP3 examples is the realization that the IObservable model for coding adapters doesn&#39;t exist in the RTM version. This is quickly confirmed with a look at a <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/streaminsight\/thread\/2fad2c92-182b-49a1-a317-f4428241a8b4\">StreamInsight forum thread<\/a>; it may return in future. Meanwhile, use the reactive framework. So I removed the Observable and PatternDetector projects for the samples solution.\n<\/p>\n<p>\nConcentrated on making the projects compile, first off. So, here&#39;s a list of the code that had to be changed for that purpose.\n<\/p>\n<p>\nIn ExplicitServer.cs\n<\/p>\n<p>\n1. Server.Create() now requires an instance name. That&#39;s the instance you named when you installed the project. In my case, that&#39;s &quot;default&quot;. Note that this doesn&#39;t mean you&#39;re using the service, you&#39;d still need Server.Connect for that.\n<\/p>\n<p>\n2. CreateQueryTemplate needs two extra arguments, template name and template description. Call them whatever you want and describe them as you&#39;d like.\n<\/p>\n<p>\n3. application.CreateQuery has the arguments in a different order (at least in the 3-arg version the samples use). It&#39;s now, &#39;name, description, and query binder instance. There&#39;s a few of these in other samples.\n<\/p>\n<p>\n4. The Snapshot() method in LINQ queries is replaced by SnapshotWindow(SnapshotWinderOutputPolicy.Clip). Clip is the only policy supported, so there&#39;s no real choice here. There&#39;s a few uses the Snapshot() in the samples.\n<\/p>\n<p>\n5. While we&#39;re on Windowing code in LINQ queries, the TumblingWindow constructor has one new required parameter (in UserAggregateQuery.cs), that&#39;s HoppingWindowOutputPolicy.ClipToWindowEnd. Again, ClipToWindowEnd is the only policy currently supported.\n<\/p>\n<p>\nNow, although most of the adapters seem to build just fine, as is, there&#39;s a little problem with the SimulatedDataInputFactory for that set of providers. That&#39;s covered in the next blog entry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. The first look at the errors produced by recompiling the CTP3 examples is the realization that the IObservable model for coding adapters doesn&#39;t exist in the RTM version. This is quickly confirmed with a look at a StreamInsight forum thread; [&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-600","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 1 - 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-1\/\" \/>\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 1 - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. The first look at the errors produced by recompiling the CTP3 examples is the realization that the IObservable model for coding adapters doesn&#039;t exist in the RTM version. This is quickly confirmed with a look at a StreamInsight forum thread; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2010-05-04T12:29:00+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-1\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/\",\"name\":\"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 1 - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2010-05-04T12:29:00+00:00\",\"dateModified\":\"2010-05-04T12:29:00+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-1\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/#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 1\"}]},{\"@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 1 - 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-1\/","og_locale":"en_US","og_type":"article","og_title":"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 1 - Bob Beauchemin","og_description":"This posting is a journey through StreamInsight 1.0 APIs, undertaking by porting the CTP3 samples. The first look at the errors produced by recompiling the CTP3 examples is the realization that the IObservable model for coding adapters doesn&#39;t exist in the RTM version. This is quickly confirmed with a look at a StreamInsight forum thread; [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/","og_site_name":"Bob Beauchemin","article_published_time":"2010-05-04T12:29:00+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-1\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/","name":"Recompiling the StreamInsight CTP3 samples for 1.0 - Part 1 - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2010-05-04T12:29:00+00:00","dateModified":"2010-05-04T12:29:00+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-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/recompiling-the-streaminsight-ctp3-samples-for-1-0-part-1\/#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 1"}]},{"@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\/600","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=600"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}