File: System\ServiceModel\Channels\MessageEncoderFactory.cs
Project: ndp\cdf\src\WCF\ServiceModel\System.ServiceModel.csproj (System.ServiceModel)
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Channels
{
    using System;
 
    public abstract class MessageEncoderFactory
    {
        protected MessageEncoderFactory()
        {
        }
 
        public abstract MessageEncoder Encoder
        {
            get;
        }
 
        public abstract MessageVersion MessageVersion
        {
            get;
        }
 
        public virtual MessageEncoder CreateSessionEncoder()
        {
            return Encoder;
        }
    }
}