Duplex/Callback functionality
I'm looking for a way to do a client callback/duplex function from a IIS hosted Web API w/a Windows PC .NET client. Right now I'm considering a in-process Web API hosted from w/in the client to receive messages.
What other approaches can I look at for achieving this? While old school WCF has this functionality, this API is the future. Instead of polling, what type of mechanism could allow for a push type notification from the web api on iis to a .net windows client?
For notification patterns you can use SignalR, which can use polling patterns or WebSockets:
https://github.com/SignalR/SignalR
We are working on providing a HubController that makes it easy to send real-time notifications to a set of clients. You can see the initial check-in of the feature here:
http://aspnetwebstack.codeplex.com/SourceControl/changeset/7605afebb159
1 comment
-
We recommend using SignalR for notification and callback patterns: https://github.com/SignalR/SignalR.
Going forward we plan to productize SignalR and integrate it with ASP.NET Web API.