C# Class BudgetAnalyser.Uwp.ApplicationState.PersistApplicationStateAsXaml

Inheritance: IPersistApplicationState
ファイルを表示 Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
LoadAsync ( ) : Task>

Load the user state from the Xaml file on the local disk.

PersistApplicationStateAsXaml ( [ logger, [ folders ) : System

Initializes a new instance of the PersistApplicationStateAsXaml class.

PersistAsync ( IEnumerable modelsToPersist ) : System.Threading.Tasks.Task

Persist the user data to the Xaml file on the local disk.

Protected Methods

Method Description
FullFileName ( ) : Task

Gets the full name of the file to save the data into. The file will be overwritten. By default this will save to the application folder with the name BudgetAnalyserAppState.xml.

Private Methods

Method Description
HandleCorruptFileFormatGracefully ( Exception exception ) : IEnumerable

Method Details

FullFileName() protected method

Gets the full name of the file to save the data into. The file will be overwritten. By default this will save to the application folder with the name BudgetAnalyserAppState.xml.
protected FullFileName ( ) : Task
return Task

LoadAsync() public method

Load the user state from the Xaml file on the local disk.
/// This will be thrown if the file is invalid. ///
public LoadAsync ( ) : Task>
return Task>

PersistApplicationStateAsXaml() public method

Initializes a new instance of the PersistApplicationStateAsXaml class.
userMessageBox cannot be null.
public PersistApplicationStateAsXaml ( [ logger, [ folders ) : System
logger [
folders [
return System

PersistAsync() public method

Persist the user data to the Xaml file on the local disk.
public PersistAsync ( IEnumerable modelsToPersist ) : System.Threading.Tasks.Task
modelsToPersist IEnumerable /// All components in the App that implement so /// the implementation can go get the data to persist. ///
return System.Threading.Tasks.Task