// 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.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Mvc
{
///
/// Defines the contract for temporary-data providers that store data that is viewed on the next request.
///
public interface ITempDataProvider
{
///
/// Loads the temporary data.
///
/// The .
/// The temporary data.
IDictionary LoadTempData([NotNull] HttpContext context);
///
/// Saves the temporary data.
///
/// The .
/// The values to save.
void SaveTempData([NotNull] HttpContext context, IDictionary values);
}
}