Is it possible to use the net.TCP binding to implement GZip in WCF, or can it be configured only with the Http and WsHttp bindings.
I do not believe that WCF supports GZip encoding using TCP socket binding, but there is nothing that would prevent you from sending GZiped compressed data through a wire and manually compressing it using methods built into the .NET platform: http://msdn.microsoft .com / en-us / library / system.io.compression.gzipstream.aspx .
Before taking this route, I highly recommend evaluating other performance enhancements in your TCP services, as described here: Transfer the smallest amount of data over the cable using WCF
Wcf 4.5 RC support message encoder out of the box http://msdn.microsoft.com/en-us/library/aa751889(v=vs.110).aspx
Source: https://habr.com/ru/post/1389991/More articles:Android - add the next and prev button to the on-screen keyboard that appears when you click on an edited text in my activity - androidIn C, what does “do?” - cHow to use the Switch enclosure in Java - javavs .list array performance issue - c #Calling specific functions in an external Rexx script - rexxstop saving the image when the open camera uses Intent through my application - androidTransferring the smallest amount of data by cable using WCF - c #Is operator overriding support in C # - overrideHTTP 504 when processing a downloaded ZIP image - pythonHow to use onClick event for Hyperlink using C # code? - c #All Articles