The Microsoft StreamInsight Product Team Samples V2.0 are demonstrating key aspects of the StreamInsight CEP platform. The purpose of the samples is to provide a guide through the StreamInsight development experience, demonstrating common design patterns for adapters, queries, and applications. The emphasis is on the teaching character, not on feature completeness, performance, or robustness. Follow the product team on Twitter for latest updates.

The samples consist of a set of Visual Studio Solutions, each of which contains at least one input adapter, one output adapter, and one main application. Each adapter is a separate projects and can be included in multiple solutions.

AdapterPurposeTeaching Value
DataGenerator (IA)Generates events with random payload valuesEvent push model (through a callback); simple implementation of the adapter state diagram
OutputTracer (OA)Traces output events on the console or a fileSimple untyped output adapter design; useful for prototyping and testing
SimpleTextFileReader (IA)Reads lines from a csv file and transforms them into eventsSimple untyped input adapter
SimpleTextFileWriter (OA)Writes events as lines to a file in csv formatSimple untyped output adapter


ApplicationPurposeTeaching Value
ComposingQueriesApplies two subsequent queries to data from the DataGenerator and dumps the result on the consoleUse dynamic query composition to stream into two output adapters
TrafficJoinQueryReads and processes traffic data from two text filesUse the explicit query binder model; join two input streams

Last edited Jun 2, 2010 at 8:35 PM by rschindlauer, version 3

Comments

rschindlauer Aug 30, 2011 at 6:29 PM 
Manga_75,
The samples are complete, the .csv files are in the folder of the project using the adapters, because the actual data belongs to the scenario, not to the adapters. You can find them in Applications/TrafficJoinQuery.
Roman

Manga_75 Aug 30, 2011 at 9:03 AM 
could someone post the sample .csv files and such so that the samples are complete....they are nowhere to be found in the downlad. would be nice to have when looking at it.

rschindlauer Apr 13, 2011 at 4:09 AM 
Chris,
Each sample project contains a README with some further information. Please let us know if you have further questions!
Regards,
Roman

chrisqiu Apr 12, 2011 at 6:38 PM 
Do you have any explaination document about the sample code?