Click here to Skip to main content
16,013,465 members
Home / Discussions / C#
   

C#

 
GeneralRe: WCF server don't detect lost or broken connection? Pin
teknolog12331-Oct-11 3:18
teknolog12331-Oct-11 3:18 
GeneralRe: WCF server don't detect lost or broken connection? Pin
jschell31-Oct-11 8:34
jschell31-Oct-11 8:34 
GeneralRe: WCF server don't detect lost or broken connection? Pin
PIEBALDconsult31-Oct-11 14:02
mvePIEBALDconsult31-Oct-11 14:02 
GeneralRe: WCF server don't detect lost or broken connection? Pin
jschell3-Nov-11 7:56
jschell3-Nov-11 7:56 
AnswerRe: WCF server don't detect lost or broken connection? Pin
BobJanova31-Oct-11 3:19
BobJanova31-Oct-11 3:19 
GeneralRe: WCF server don't detect lost or broken connection? Pin
teknolog12331-Oct-11 4:01
teknolog12331-Oct-11 4:01 
GeneralRe: WCF server don't detect lost or broken connection? Pin
PIEBALDconsult31-Oct-11 5:11
mvePIEBALDconsult31-Oct-11 5:11 
GeneralRe: WCF server don't detect lost or broken connection? Pin
BobJanova31-Oct-11 5:14
BobJanova31-Oct-11 5:14 
Ah, well, I don't have any experience of using the netTcpBinding, but I think the WCF framework is set up to operate over HTTP so it's possible it doesn't directly expose a disconnect event. If you want this kind of thing I'd personally recommend doing the TCP communication yourself to get full control, but I realise that's not for everyone.

Does using WCF over TCP allow the server to make a call in a client (i.e. server push)? If so the best design looks to me to be:
- client makes a request through the service, which pushes the request onto a queue for approval, and returns some sort of ID that the client can use to look this request up later.
- client puts that ID in a local list of pending requests
- server application has a thread (logically speaking, might not actually be a thread) which repeatedly takes the top item of the queue and presents it for an administrator to approve or decline. Note that this is not done in a service call.
- when a queue item is processed (either confirm or deny), the server sends a message (in WCF terms, this means call a service method) to the relevant client stating the ID and whether it was approved
- in that method the client triggers its further processing for that request

The client UI can make it impossible to do anything much if there is already a pending request open, or it can allow multiple pending requests, depending on your requirements. But behind the scenes something queue based permitting any number of requests seems like the best approach.
GeneralRe: WCF server don't detect lost or broken connection? Pin
Pete O'Hanlon31-Oct-11 5:24
mvePete O'Hanlon31-Oct-11 5:24 
AnswerRe: WCF server don't detect lost or broken connection? Pin
jschell31-Oct-11 8:44
jschell31-Oct-11 8:44 
GeneralRe: WCF server don't detect lost or broken connection? Pin
PIEBALDconsult1-Nov-11 2:56
mvePIEBALDconsult1-Nov-11 2:56 
GeneralRe: WCF server don't detect lost or broken connection? Pin
jschell3-Nov-11 8:00
jschell3-Nov-11 8:00 
GeneralRe: WCF server don't detect lost or broken connection? Pin
teknolog1231-Nov-11 23:33
teknolog1231-Nov-11 23:33 
QuestionOnline Exam Using Sqlsqerver in Asp.Net using C#.Net Pin
kitupadma30-Oct-11 21:32
kitupadma30-Oct-11 21:32 
AnswerRe: Online Exam Using Sqlsqerver in Asp.Net using C#.Net Pin
Abhinav S30-Oct-11 22:08
Abhinav S30-Oct-11 22:08 
AnswerRe: Online Exam Using Sqlsqerver in Asp.Net using C#.Net Pin
BobJanova30-Oct-11 22:58
BobJanova30-Oct-11 22:58 
AnswerRe: Online Exam Using Sqlsqerver in Asp.Net using C#.Net Pin
phil.o30-Oct-11 23:26
professionalphil.o30-Oct-11 23:26 
QuestionReading values from xml string Pin
sarang_k30-Oct-11 21:05
sarang_k30-Oct-11 21:05 
AnswerRe: Reading values from xml string PinPopular
Abhinav S30-Oct-11 22:07
Abhinav S30-Oct-11 22:07 
GeneralRe: Reading values from xml string Pin
BobJanova30-Oct-11 22:59
BobJanova30-Oct-11 22:59 
GeneralRe: Reading values from xml string Pin
Abhinav S30-Oct-11 23:01
Abhinav S30-Oct-11 23:01 
AnswerRe: Reading values from xml string Pin
V.31-Oct-11 3:26
professionalV.31-Oct-11 3:26 
QuestionHOw to resize Images in C#/Asp.NET Pin
Software200730-Oct-11 17:25
Software200730-Oct-11 17:25 
AnswerRe: HOw to resize Images in C#/Asp.NET Pin
Software200731-Oct-11 7:30
Software200731-Oct-11 7:30 
AnswerRe: HOw to resize Images in C#/Asp.NET Pin
Sean A. Hanley1-Nov-11 9:17
Sean A. Hanley1-Nov-11 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.