GenerateTypedBamApi

Generates a set of strongly typed C# classes
Download

GenerateTypedBamApi Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Ms-PL
  • Publisher Name:
  • Scott Colestock
  • Operating Systems:
  • Windows All
  • File Size:
  • 10 KB

GenerateTypedBamApi Tags


GenerateTypedBamApi Description

The GenerateTypedBamApi was designed to be a small command line tool that will enable you to take a BAM Observation model represented as a Excel Spreadsheet and generate a set of strongly typed C# classes which you can then use to create and populate BAM Activities. The native BAM API is loosely typed and therefore requires Activity Names and Activity Items to be supplied as string literals, this can be brittle especially as the observation model evolves over time and any typos, etc. will lead to runtime errors instead of compile time errors. A strongly typed class is created for each Activity with properties for each Activity Item along with helper methods to write Activity Items to an Activity, Add References, Custom References (e.g. Message Bodies) and Continuation. This tool uses a XSLT transform to turn the XML representing the BAM Observation Model into C# code. The GenerateTypedBamApi command line tool is straight forward to use and full instructions are given if you run the tool with no parameters. The first parameter specifies the Excel Spreadsheet where your BAM Observation Model is defined, the second paramter specifies the output code file and the third parameter is either Direct, Buffered or Orchestration* these relate to the type of EventStream you wish to use (DirectEventStream, BufferedEventStream or OrchestrationEventStream)


GenerateTypedBamApi Related Software