Hosting a workflow service in IIS7
The process of sending an e-mail would consume some time—maybe a few seconds or even minutes. It would be a waste of time and resources for our applications to stop and wait for an e-mail sending action to complete. Because sending e-mail is time-consuming, a better design is to strip this feature out as an independent WCF workflow service and host that service in IIS7.
Getting ready
We need the SendEmailActivity
activity to send an e-mail. We can check this activity in Chapter 5, Custom Activities.
How to do it...
- Create a WCF workflow service application:
Create a WCF workflow service application and name it
HostingWorkflowServiceInIIS7
. - Add SendEmailActivity to the toolbox:
In the Toolbox tab, right-click and ...
Get Microsoft Windows Workflow Foundation 4.0 Cookbook 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.