Asynchronous Communication
This topic applies to Windows Workflow Foundation 4 (WF4).
This sample demonstrates how the communication between two different Windows Workflow Foundation (WF) services is done asynchronously by default.
Demonstrates
Asynchronous communication between WF services.
Discussion
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.
- CreditCheckService
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.
- RentalApprovalService
This service receives an application from a person who is in need of some credit. This service communicates asynchronously with theCreditCheckService
to decide whether the credit application is valid.
- Client
The client communicates synchronously with theRentalApprovalService
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.
Note: |
---|
The samples may already be installed on your computer. Check for the following (default) directory before continuing.
<InstallDrive>:\WF_WCF_Samples
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.
<InstallDrive>:\WF_WCF_Samples\WF\Scenario\Services\AsynchronousCommunication
|