Asynchronous Communication
The AsynchronousCommunication 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 the CreditCheckService
to decide whether the credit application is valid.
Client
The client communicates synchronously with the RentalApprovalService
to know whether the credit is approved.
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for