Can we create a WCF service that publishes events?

I want to create a push application.

The service level is built on WCF.

Presentation Level Built on Asp.net 4

The service listens for events and updates its static property (general list of collections) at the data level. I will poll in my presentation layer and each time I call the WCF method and get an updated collection.

If the collection is unmodified, I return an empty list to save network bandwidth.

To preserve the round trips, I want the WCF service to post the event if and when the collection was changed. Is it possible? How to achieve this?

thanks

+4
source share
2 answers

WCF services allow duplex communication , so it can send messages to the client.

+5
source

I searched the same thing, but found nothing using the Push tool in .NET. Then I had to use Flex with .Net.

You can start with this

0
source

All Articles