O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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...

  1. Create a WCF workflow service application:

    Create a WCF workflow service application and name it HostingWorkflowServiceInIIS7.

  2. Add SendEmailActivity to the toolbox:

    In the Toolbox tab, right-click and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required