Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Hosting Workflow Applications > Hosting a workflow service in IIS7

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.

    How to do it...
  2. Add SendEmailActivity to the toolbox:

    In the Toolbox tab, right-click and select Choose Items. In the opening dialog, click Browse and navigate to the ActivityLibrary.dll from the sample code of chapter05. Next, check SendEmailActivity:

    How to do it...

    Click OK. We will find SendEmailActivity in the toolbox:

    How to do it...

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint