52 references to CompressionFormat
dotnet-svcutil-lib (52)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (35)
25
private
CompressionFormat
_compressionFormat;
40
XmlDictionaryReaderQuotas readerQuotas, long maxReceivedMessageSize, BinaryVersion version,
CompressionFormat
compressionFormat)
103
public
CompressionFormat
CompressionFormat
324
private
CompressionFormat
_sessionCompressionFormat;
341
case
CompressionFormat
.Deflate:
344
case
CompressionFormat
.GZip:
378
get { return _factory.CompressionFormat !=
CompressionFormat
.None; }
523
CompressionFormat
compressionFormat = this.CheckContentType(contentType);
530
if (compressionFormat !=
CompressionFormat
.None)
589
CompressionFormat
compressionFormat = this.CheckContentType(contentType);
596
if (compressionFormat !=
CompressionFormat
.None)
716
CompressionFormat
compressionFormat = this.CheckCompressedWrite(message);
717
if (compressionFormat !=
CompressionFormat
.None)
743
CompressionFormat
compressionFormat = this.CheckCompressedWrite(message);
744
if (compressionFormat !=
CompressionFormat
.None)
765
if (compressionFormat !=
CompressionFormat
.None)
779
supported = (_factory.CompressionFormat ==
CompressionFormat
.GZip &&
781
(_factory.CompressionFormat ==
CompressionFormat
.Deflate &&
797
_sessionCompressionFormat =
CompressionFormat
.GZip;
801
_sessionCompressionFormat =
CompressionFormat
.Deflate;
805
_sessionCompressionFormat =
CompressionFormat
.None;
819
private
CompressionFormat
CheckContentType(string contentType)
821
CompressionFormat
compressionFormat =
CompressionFormat
.None;
837
if (_factory.CompressionFormat ==
CompressionFormat
.GZip && ContentTypeEqualsOrStartsWith(contentType, _gzipCompressedContentType))
839
compressionFormat =
CompressionFormat
.GZip;
841
else if (_factory.CompressionFormat ==
CompressionFormat
.Deflate && ContentTypeEqualsOrStartsWith(contentType, _deflateCompressedContentType))
843
compressionFormat =
CompressionFormat
.Deflate;
847
compressionFormat =
CompressionFormat
.None;
859
private
CompressionFormat
CheckCompressedWrite(Message message)
861
CompressionFormat
compressionFormat = _sessionCompressionFormat;
862
if (compressionFormat !=
CompressionFormat
.None && !_isSession)
869
if ((compressionFormat ==
CompressionFormat
.GZip &&
871
(compressionFormat ==
CompressionFormat
.Deflate &&
874
compressionFormat =
CompressionFormat
.None;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (4)
19
private
CompressionFormat
_compressionFormat;
49
public
CompressionFormat
CompressionFormat
168
if (_compressionFormat !=
CompressionFormat
.None)
177
CompressionFormat
.None.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
638
public bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ITransportCompressionSupport.cs (1)
9
bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoderCompressionHandler.cs (8)
17
internal static void DecompressBuffer(ref ArraySegment<byte> buffer, BufferManager bufferManager,
CompressionFormat
compressionFormat, long maxReceivedMessageSize)
29
using (Stream ds = compressionFormat ==
CompressionFormat
.GZip ?
59
internal static void CompressBuffer(ref ArraySegment<byte> buffer, BufferManager bufferManager,
CompressionFormat
compressionFormat)
65
using (Stream ds = compressionFormat ==
CompressionFormat
.GZip ?
79
internal static Stream GetDecompressStream(Stream compressedStream,
CompressionFormat
compressionFormat)
81
return compressionFormat ==
CompressionFormat
.GZip ?
86
internal static Stream GetCompressStream(Stream uncompressedStream,
CompressionFormat
compressionFormat)
88
return compressionFormat ==
CompressionFormat
.GZip ?
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
132
public bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (2)
44
public const
CompressionFormat
DefaultCompressionFormat =
CompressionFormat
.None;