Timeout on WCF

  • Thread starter Thread starter Oriane
  • Start date Start date
O

Oriane

Hi there,

we use WCF with a duplex channel (type is netNamedPipeBinding).

We would like to be aware on the server side that a WCF client will soon
receive the "receiveTimeout" event. The goal is to send a last event to this
client to tell him : "You will be soon disconnected, your app is about to be
closed" and to shutdown his app.

Does iteem possible ?

Cheers
 
Oriane said:
We would like to be aware on the server side that a WCF client will soon
receive the "receiveTimeout" event.

The client knows when the receive will time out, not the server (because the
client determines how long it's prepared to wait), and it is the client who
can respond to this in whatever way it likes. The event is not "received".
The goal is to send a last event to this client to tell him : "You will
be soon disconnected, your app is about to be closed" and to shutdown his
app.
Again, the server doesn't send events to clients. Events happen in response
to what's going on on the wire, but they're not communicated. You can decide
on some common data format to use for exchanging information like "you
should close the connection now" (in case this can't be detected
automatically in your binding) but this isn't part of the framework and not
event-based in any case.
 
Back
Top