0
Follow the doubts...
1- What is the difference between a WCF Service and a Duplex Service?
2- When to use a Duplex Service?
3- We can compare it to Signalr?
0
Follow the doubts...
1- What is the difference between a WCF Service and a Duplex Service?
2- When to use a Duplex Service?
3- We can compare it to Signalr?
2
What’s the difference between a WCF Service and a Duplex Service?
In WCF we can configure the types of messages exchanged between client and WCF service, Duplex is one of these types of messages:
In a WCF service configured to exchange messages of the type Duplex the customer calls for an available operation and continues to work, but at some point the WCF service sends a response to the customer (callback), so that based on that return the customer can make a decision.
When to use a Duplex Service?
In a scenario you need the return of your WCF service to make a decision.
Suppose a particular WCF service, you are calling a method to Meuservicowcf.Closesale(...). However, you feel the need for your WCF service to notify the customer that an event has taken place (by calling a customer method), let’s say that "the stock has run out and some other method needs to be invoked on the customer to handle it". So you give the customer a chance to achieve a better interaction with the WCF service.
This allows a two-way communication, that is, the customer invoking a service method as well as a service invoking a customer’s method.
We can compare him to Signalr?
As far as implementation is concerned, I have never implemented an application in Signalr, so I can’t compare at implementation level, but roughly:
Asp.net Signaler is an open-source library that facilitates the implementation of real time (example Chats, Real-time Stock Quotes, Games), asynchronous updates/notifications in an application.
WCF is a part of . NET Framework that provides a unified programming model to quickly build service-oriented distributed applications (SOA). WCF represents an independent communication layer and simplifies the implementation and configuration of a distributed application.
Browser other questions tagged c# wcf signalr
You are not signed in. Login or sign up in order to post.