This sample demonstrates how the communication between two different Windows Workflow Foundation (WF) services is done asynchronously by default.
Asynchronous communication between WF services.
This sample shows how the communication between WF applications is done asynchronously by using the messaging activities provided by .NET Framework.
This sample consists of the following three projects.
This service receives the credit score of a particular person or the value of the item to acquire, and then decides whether the credit is given to the person.
This service receives an application from a person who is in need of some credit. This service communicates asynchronously with the
CreditCheckService to decide whether the credit application is valid.
The client communicates synchronously with the
RentalApprovalService to know whether the credit is approved.
To set up, build, and run the sample
Right-click the AsynchronousCommunication solution and select Properties.
In Common Properties, select Startup Project, and select Multiple Startup Projects.
Move RentalApprovalService to the first position in the list, followed by CreditCheckService, followed by Client. Set the Start action on all three projects.
Click OK, and press F5 to run the sample.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.
If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.