// 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.Web.Http;
namespace System.Net.Http
{
///
/// Represents the result for .
///
public class RemoteStreamInfo
{
///
/// Initializes a new instance of the class.
///
///
/// The remote stream instance where the file will be written to.
///
/// The remote file's location.
/// The remote file's name.
public RemoteStreamInfo(Stream remoteStream, string location, string fileName)
{
if (remoteStream == null)
{
throw Error.ArgumentNull("remoteStream");
}
if (location == null)
{
throw Error.ArgumentNull("location");
}
if (fileName == null)
{
throw Error.ArgumentNull("fileName");
}
FileName = fileName;
RemoteStream = remoteStream;
Location = location;
}
///
/// Gets the remote file's location.
///
public string FileName { get; private set; }
///
/// Gets the remote file's location.
///
public string Location { get; private set; }
///
/// Gets the remote stream instance where the file will be written to.
///
public Stream RemoteStream { get; private set; }
}
}