Host-to-Workflow Communication

Having introduced the activities in WF that deal with events, I can now fulfill my promise to show you the other half of the workflow/host communication scheme. From Chapter 8, you might recall that the CallExternalMethod activity is used by the workflow instance to send information to the host process. The "external method" that’s called is actually a method you provide that is exposed by a local communications service you write. The service then takes the information destined for the host and fires an event. The event signals the availability of data, and the host can take measures to read the data from the service (which cached the data after receiving it from the workflow).

The reverse process, where the host ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.