File: System\ServiceModel\Dispatcher\WebScriptMetadataFormatter.cs
Project: ndp\cdf\src\NetFx35\System.ServiceModel.Web\System.ServiceModel.Web.csproj (System.ServiceModel.Web)
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------
 
namespace System.ServiceModel.Dispatcher
{
    using System.ServiceModel.Channels;
 
    internal class WebScriptMetadataFormatter : IDispatchMessageFormatter
    {
        public void DeserializeRequest(Message message, object[] parameters)
        {
            parameters[0] = message;
        }
 
        public Message SerializeReply(MessageVersion messageVersion, object[] parameters, object result)
        {
            return result as Message;
        }
    }
}