// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Net.Http.Headers;
using System.Web.Http;
namespace System.Net.Http
{
///
/// Provides a implementation that returns a instance.
/// This facilitates deserialization or other manipulation of the contents in memory.
///
public class MultipartMemoryStreamProvider : MultipartStreamProvider
{
///
/// This implementation returns a instance.
/// This facilitates deserialization or other manipulation of the contents in memory.
///
public override Stream GetStream(HttpContent parent, HttpContentHeaders headers)
{
if (parent == null)
{
throw Error.ArgumentNull("parent");
}
if (headers == null)
{
throw Error.ArgumentNull("headers");
}
return new MemoryStream();
}
}
}