Click here to Skip to main content
15,889,909 members
Home / Discussions / C#
   

C#

 
AnswerRe: Audio processing Pin
phil.o31-Oct-11 8:44
professionalphil.o31-Oct-11 8:44 
QuestionUnique values in list Pin
nitin_ion31-Oct-11 0:09
nitin_ion31-Oct-11 0:09 
AnswerRe: Unique values in list Pin
Pete O'Hanlon31-Oct-11 0:57
mvePete O'Hanlon31-Oct-11 0:57 
GeneralRe: Unique values in list Pin
nitin_ion31-Oct-11 1:01
nitin_ion31-Oct-11 1:01 
GeneralRe: Unique values in list Pin
Not Active31-Oct-11 2:06
mentorNot Active31-Oct-11 2:06 
GeneralRe: Unique values in list Pin
Pete O'Hanlon31-Oct-11 7:33
mvePete O'Hanlon31-Oct-11 7:33 
AnswerRe: Unique values in list Pin
Reiss31-Oct-11 3:28
professionalReiss31-Oct-11 3:28 
QuestionWCF server don't detect lost or broken connection? Pin
teknolog12331-Oct-11 0:04
teknolog12331-Oct-11 0:04 
Hi, I have a working wcf server-client application.Client makes a call every 3 seconds.If client doesn't call any method for ten seconds, server drops the connection based on the closetimeout setting(10 secs).(not prefer but with this setting, if something happens to client like ethernet/power plug off, I detect lost connection)

But as a side effect of this, if server's response time exceeds 10 secs(like a messagebox asking for a user confirm.), the client is waiting and the connection is gone of course, because client can't make another call until the previous one answered.(InstanceContextMode=PerSession)

Oddly,it is said that setting a void method as "IsOneway=true" the client doesn't wait for server to finish process and so it can make another call. But it's not so in action, it still waits server to finish. ???

The question is:
I want to get rid of closetimeout setting by setting it to int.maxvalue and detect lost connections by service or instance faults.Any way of doing this?

(I tried the closed and faulted events of operationContext...etc with no success)

(I didn't try faultContract because I don't want to send fault details to clients(am I wrong about this?). I only want whether the client is connected or not)

modified 31-Oct-11 7:20am.

AnswerRe: WCF server don't detect lost or broken connection? Pin
PIEBALDconsult31-Oct-11 2:44
mvePIEBALDconsult31-Oct-11 2:44 
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 
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 

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.