File: FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryVersion.cs
Web Access
Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using Microsoft.Xml;
 
namespace System.ServiceModel.Channels
{
    public class BinaryVersion
    {
        static public readonly BinaryVersion Version1 = new BinaryVersion(FramingEncodingString.Binary, FramingEncodingString.BinarySession, ServiceModelDictionary.Version1);
        static public readonly BinaryVersion GZipVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryGZip, FramingEncodingString.ExtendedBinarySessionGZip, ServiceModelDictionary.Version1);
        static public readonly BinaryVersion DeflateVersion1 = new BinaryVersion(FramingEncodingString.ExtendedBinaryDeflate, FramingEncodingString.ExtendedBinarySessionDeflate, ServiceModelDictionary.Version1);
 
        private string _contentType;
        private string _sessionContentType;
        private IXmlDictionary _dictionary;
 
        private BinaryVersion(string contentType, string sessionContentType, IXmlDictionary dictionary)
        {
            _contentType = contentType;
            _sessionContentType = sessionContentType;
            _dictionary = dictionary;
        }
 
        static public BinaryVersion CurrentVersion { get { return Version1; } }
        public string ContentType { get { return _contentType; } }
        public string SessionContentType { get { return _sessionContentType; } }
        public IXmlDictionary Dictionary { get { return _dictionary; } }
    }
}