// 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.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.ViewFeatures { /// /// 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(HttpContext context); /// /// Saves the temporary data. /// /// The . /// The values to save. void SaveTempData(HttpContext context, IDictionary values); } }