I want to create my own binding class, a class that inherits
System.ServiceModel.Channels.Binding (or one of its subclasses). Does
anyone know any good articles or have any tips on how to do this?

The binding I want to create should offer the same functionality as
WsDualHttpBinding, i.e. server to client communication, but without
requiring the client to listen on any port.
I have already achieved server to client communication trough
BasicHttpBinding, thanks to Ian Griffiths
http://discuss.develop.com/archives/wa.exe?A2=ind0409A&L=ADVANCED-
DOTNET&P=R3331&I=-3

The idea behind this technique is this: The client calls a GetMessage
operation at the server asynchronously and the server handles the call
asynchronously. The server waits until a given timeout before it responds
by sending null back. When the client receives the null response, it
immediately calls GetMessage again. At any given time, the server may want
to call the client. It does so by letting the GetMessage operation return
immediately (without waiting for the timeout), and letting the message be
the return value of the GetMessage operation. The client handles the
returned message as if it was an incoming call.

The advantage of this technique is that it does not require the client to
listen to any port, and that it does not require the server to wait for
the next poll before being able to send information to the client, as
normal polling would do.

As mention, I have succeeded making the communication work. What I want
now is to hide the logic in the Binding. Any tips will be greatly
appreciated!

Ragnvald

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to