WCF

T4 template consuming a WCF service

It’s been a while since I’ve blogged since things have been crazy busy. I finally decided to kick myself and do a post so without further ado, the problem at hand: A co-worker of mine asked me whether its possible to dynamically create a type from some data he is receiving from a WCF service (over HTTP). My natural response was, why would you need to do that since Visual Studio creates a proxy from the metadata exposed by the service and the return types would typically be DataContracts. Well, it...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Handling WorkflowRuntime events for IIS hosted WCF + WF services

The WorkflowRuntime class has a host of interesting methods and useful events. Events such as Completed, Perssited, Idled are invaluable when debugging and in understanding how a workflow instance is behaving. These events are easily accessible when self hosting the runtime since you can just hook up event handlers for these events and react to these events as you see fit. But, when the workflow runtime is hosted in IIS/WAS/Cassini host, you don’t have a direct handle to the runtime for hooking up...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati