C# Class Sakura.AspNetCore.Mvc.EnhancedSessionStateTempDataProvider

Enhanced session-state based temp data provider which can be used to save and load complex data objects.
Inheritance: SessionStateTempDataProvider
Mostrar archivo Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
EnhancedSessionStateTempDataProvider ( IObjectSerializer objectSerializer ) : System.Collections.Generic

Initialize an new instance with required services.

LoadTempData ( HttpContext context ) : object>.IDictionary

Load temp data dictionary from the specified HttpContext object.

SaveTempData ( HttpContext context, object>.IDictionary values ) : void

Save temp data dictionary to the specified HttpContext object.

Method Details

EnhancedSessionStateTempDataProvider() public method

Initialize an new instance with required services.
public EnhancedSessionStateTempDataProvider ( IObjectSerializer objectSerializer ) : System.Collections.Generic
objectSerializer IObjectSerializer The required object serializer service.
return System.Collections.Generic

LoadTempData() public method

Load temp data dictionary from the specified HttpContext object.
public LoadTempData ( HttpContext context ) : object>.IDictionary
context HttpContext The object.
return object>.IDictionary

SaveTempData() public method

Save temp data dictionary to the specified HttpContext object.
public SaveTempData ( HttpContext context, object>.IDictionary values ) : void
context HttpContext The object.
values object>.IDictionary The temp data dictionary to be saving.
return void