WCF Azure Net.TCP Keep Alive

This sample creates a net.tcp service that periodically sends a keep-alive signal to avoid timeouts.

C# (188.3 KB)
5 Star
2,761 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • Method to do this without dynamic generation?
    1 Posts | Last post December 06, 2013
    • Awesome job.  Love this bit of code.  I spent a bit of time last night verifying that this solution would fix my azure load balancing timeouts and sure enough it took care of things.  The only problem was I foolishly had forgotten about the fact that Monotouch (i'm experiencing the timeouts in an app I've written) only supports a subset of WCF and not any dynamic proxy generation.  On the app, I generate the proxy and then doctor it up a bit to do what I need it to do.  The client obviously inherits from ClientBase and I override CreateChannel.  I'm a WCF novice, and wanted to know how possible/difficult it would be to add the KeepaliveRequestChannel feature into my overriden CreateChannel knowing that I can't do any dynamic proxy generation owing to apple not allowing for any Reflection.emit?  I need to create some similar solution to prevent wcf from timing out from azure's load balancer, but can't use the dynamic code generation :(.  Any ideas? Many Thanks
  • Comment on your Architecture
    3 Posts | Last post December 09, 2011
  • HTTPS and non-TCP
    1 Posts | Last post December 02, 2011
    • Hi,
      Thanks for this magnificent piece of code.
      I have a question: will this solution work over HTTPS and non-TCP binding ?
  • Is the Azure SDK actually required?
    1 Posts | Last post July 01, 2011
    • Browsing the code, I didn't notice any Azure dependencies... does this sample actually require the Azure SDK?