62 references to CompressionFormat
System.ServiceModel (62)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (35)
24
CompressionFormat
compressionFormat;
41
XmlDictionaryReaderQuotas readerQuotas, long maxReceivedMessageSize, BinaryVersion version,
CompressionFormat
compressionFormat)
104
public
CompressionFormat
CompressionFormat
420
CompressionFormat
sessionCompressionFormat;
437
case
CompressionFormat
.Deflate:
440
case
CompressionFormat
.GZip:
474
get { return this.factory.CompressionFormat !=
CompressionFormat
.None; }
619
CompressionFormat
compressionFormat = this.CheckContentType(contentType);
626
if (compressionFormat !=
CompressionFormat
.None)
693
CompressionFormat
compressionFormat = this.CheckContentType(contentType);
700
if (compressionFormat !=
CompressionFormat
.None)
829
CompressionFormat
compressionFormat = this.CheckCompressedWrite(message);
830
if (compressionFormat !=
CompressionFormat
.None)
856
CompressionFormat
compressionFormat = this.CheckCompressedWrite(message);
857
if (compressionFormat !=
CompressionFormat
.None)
878
if (compressionFormat !=
CompressionFormat
.None)
891
supported = (this.factory.CompressionFormat ==
CompressionFormat
.GZip &&
893
(this.factory.CompressionFormat ==
CompressionFormat
.Deflate &&
909
this.sessionCompressionFormat =
CompressionFormat
.GZip;
913
this.sessionCompressionFormat =
CompressionFormat
.Deflate;
917
this.sessionCompressionFormat =
CompressionFormat
.None;
931
CompressionFormat
CheckContentType(string contentType)
933
CompressionFormat
compressionFormat =
CompressionFormat
.None;
949
if (this.factory.CompressionFormat ==
CompressionFormat
.GZip && ContentTypeEqualsOrStartsWith(contentType, this.gzipCompressedContentType))
951
compressionFormat =
CompressionFormat
.GZip;
953
else if (this.factory.CompressionFormat ==
CompressionFormat
.Deflate && ContentTypeEqualsOrStartsWith(contentType, this.deflateCompressedContentType))
955
compressionFormat =
CompressionFormat
.Deflate;
959
compressionFormat =
CompressionFormat
.None;
971
CompressionFormat
CheckCompressedWrite(Message message)
973
CompressionFormat
compressionFormat = this.sessionCompressionFormat;
974
if (compressionFormat !=
CompressionFormat
.None && !this.isSession)
981
if ((compressionFormat ==
CompressionFormat
.GZip &&
983
(compressionFormat ==
CompressionFormat
.Deflate &&
986
compressionFormat =
CompressionFormat
.None;
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (4)
23
CompressionFormat
compressionFormat;
53
public
CompressionFormat
CompressionFormat
172
if (this.compressionFormat !=
CompressionFormat
.None)
181
CompressionFormat
.None.ToString())));
System\ServiceModel\Channels\CompressionFormatHelper.cs (6)
10
public static void Validate(
CompressionFormat
value)
14
throw FxTrace.Exception.AsError(new InvalidEnumArgumentException("value", (int)value, typeof(
CompressionFormat
)));
18
internal static bool IsDefined(
CompressionFormat
value)
21
value ==
CompressionFormat
.None
22
|| value ==
CompressionFormat
.Deflate
23
|| value ==
CompressionFormat
.GZip;
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
1001
public bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat)
System\ServiceModel\Channels\ITransportCompressionSupport.cs (1)
8
bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat);
System\ServiceModel\Channels\MessageEncoderCompressionHandler.cs (8)
16
internal static void DecompressBuffer(ref ArraySegment<byte> buffer, BufferManager bufferManager,
CompressionFormat
compressionFormat, long maxReceivedMessageSize)
28
using (Stream ds = compressionFormat ==
CompressionFormat
.GZip ?
58
internal static void CompressBuffer(ref ArraySegment<byte> buffer, BufferManager bufferManager,
CompressionFormat
compressionFormat)
64
using (Stream ds = compressionFormat ==
CompressionFormat
.GZip ?
78
internal static Stream GetDecompressStream(Stream compressedStream,
CompressionFormat
compressionFormat)
80
return compressionFormat ==
CompressionFormat
.GZip ?
85
internal static Stream GetCompressStream(Stream uncompressedStream,
CompressionFormat
compressionFormat)
87
return compressionFormat ==
CompressionFormat
.GZip ?
System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
285
public bool IsCompressionFormatSupported(
CompressionFormat
compressionFormat)
System\ServiceModel\Channels\TransportDefaults.cs (2)
44
internal const
CompressionFormat
DefaultCompressionFormat =
CompressionFormat
.None;
System\ServiceModel\Configuration\BinaryMessageEncodingElement.cs (2)
53
public
CompressionFormat
CompressionFormat
55
get { return (
CompressionFormat
)base[ConfigurationStrings.CompressionFormat]; }
System\ServiceModel\Configuration\Properties.cs (2)
571
properties.Add(new ConfigurationProperty("compressionFormat", typeof(System.ServiceModel.Channels.
CompressionFormat
), System.ServiceModel.Channels.
CompressionFormat
.None, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.Channels.CompressionFormatHelper)), System.Configuration.ConfigurationPropertyOptions.None));