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