File size

File size

File size

File size

File size

228.0 B

Part three in my short series on Workflow Foundation covers service enabling workflows. Service enabling a workflow doesn’t necessarily mean WCF, though WCF is certainly an option. In this screencast we look at leveraging services
to enable activities that can run in various host environments.

This is a continuation from part 2, so you may want to view that screencast first if you haven’t seen it.

The link ist still broken but the example itself shouldn't be too complex.
The biggest problem is to route the the message from the Service Object to the UI Control. This has to be done by invoking a delegate on the form or the control itself, gently asking it do display someting for you. I usually do it with events exposed by the
service class:

The EventArgs object for this Event is a simple class derived from ExternalDataEventArgs, that contains a string property for the message. To identify the sender the ExternalDataEventArgs Ctor always requires a Guid.

Now you can instantiate the service from the host application, then register to the MessageReceived Event. When received you can build a delegate that will be invoked on the form to change properties of the controls to display the message

Remove this comment

Remove this thread

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums, or
Contact Us and let us know.