RE: Comet implementation in WCF
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Thu, 20 Nov 2008 05:57:27 GMT
Hi Jonny,
As for the WCF Comet service scenario you mentioned, I think what you need
now is some means to check the client connection status when the
server-side finished the method(and ready to return).
So far based on my research, at server-side, WCF method can use
"OperationContext.Current" to inspect some WCF method invocation context
info. And the OperationContext class has a "InstanceContext" property that
can help inspect the current communication object's State:
#OperationContext Class
http://msdn.microsoft.com/en-us/library/system.servicemodel.operationcontext
aspx
For example:
========================
public string GetStringData()
{
OperationContext.Current.InstanceContext.State
}
========================
BTW, since your server-side WCF operation will take long time to process,
have you used async method call pattern at client-side? I think using async
approach will make the client-side UI responding perform better.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Jonny Bergdahl" <jonny.bergdahl@xxxxxxxxxxxxxxxx>
Subject: Comet implementation in WCF
Date: Wed, 19 Nov 2008 11:02:52 +0100
check
I am developing a WCF Comet web service, where client requests gets queued
until a response is available. The connection to the client is thus open a
long time, and in the Comet pattern timeouts is a factor that needs to be
addressed. It can for instance be a proxy server between the client and
server that has a short timeout that disconnects before the server or
client.
Now, the question is how to get a handle to the response so that I can
if the client is still connected?
Regards;
/jb
.
- Follow-Ups:
- Re: Comet implementation in WCF
- From: Jonny Bergdahl
- Re: Comet implementation in WCF
- References:
- Comet implementation in WCF
- From: Jonny Bergdahl
- Comet implementation in WCF
- Prev by Date: Gettting xml column data
- Next by Date: Re: Comet implementation in WCF
- Previous by thread: Comet implementation in WCF
- Next by thread: Re: Comet implementation in WCF
- Index(es):
Relevant Pages
|
Loading