| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Xml; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF.Channels |
| | | 7 | | { |
| | | 8 | | internal class BinaryVersion |
| | | 9 | | { |
| | 9 | 10 | | public static readonly BinaryVersion Version1 = new BinaryVersion(FramingEncodingString.Binary, FramingEncodingS |
| | 9 | 11 | | public static readonly BinaryVersion GZipVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryGZip, |
| | 9 | 12 | | public static readonly BinaryVersion DeflateVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryDef |
| | | 13 | | |
| | 27 | 14 | | private BinaryVersion(string contentType, string sessionContentType, IXmlDictionary dictionary) |
| | | 15 | | { |
| | 27 | 16 | | ContentType = contentType; |
| | 27 | 17 | | SessionContentType = sessionContentType; |
| | 27 | 18 | | Dictionary = dictionary; |
| | 27 | 19 | | } |
| | | 20 | | |
| | 0 | 21 | | public static BinaryVersion CurrentVersion { get { return Version1; } } |
| | 1065 | 22 | | public string ContentType { get; } |
| | 402 | 23 | | public string SessionContentType { get; } |
| | 400 | 24 | | public IXmlDictionary Dictionary { get; } |
| | | 25 | | } |
| | | 26 | | } |