Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.Services.PersistAndRestoreService Class Reference

Service to persist and restore application data. More...

Inheritance diagram for Vereinsmeisterschaften.Services.PersistAndRestoreService:
Vereinsmeisterschaften.Contracts.Services.IPersistAndRestoreService

Public Member Functions

 PersistAndRestoreService (IFileService fileService, IOptions< AppConfig > appConfig)
 Constructor for the PersistAndRestoreService.
 
void PersistData ()
 Persists the application data to a file in the local application data folder.
 
void RestoreData ()
 Restores the application data from a file in the local application data folder.
 

Private Attributes

readonly IFileService _fileService
 
readonly AppConfig _appConfig
 
readonly string _localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
 

Detailed Description

Service to persist and restore application data.

Definition at line 15 of file PersistAndRestoreService.cs.

Constructor & Destructor Documentation

◆ PersistAndRestoreService()

Vereinsmeisterschaften.Services.PersistAndRestoreService.PersistAndRestoreService ( IFileService fileService,
IOptions< AppConfig > appConfig )

Constructor for the PersistAndRestoreService.

Parameters
fileServiceIFileService object
appConfigAppConfig

Definition at line 26 of file PersistAndRestoreService.cs.

Member Function Documentation

◆ PersistData()

void Vereinsmeisterschaften.Services.PersistAndRestoreService.PersistData ( )

Persists the application data to a file in the local application data folder.

Implements Vereinsmeisterschaften.Contracts.Services.IPersistAndRestoreService.

Definition at line 33 of file PersistAndRestoreService.cs.

◆ RestoreData()

void Vereinsmeisterschaften.Services.PersistAndRestoreService.RestoreData ( )

Restores the application data from a file in the local application data folder.

Implements Vereinsmeisterschaften.Contracts.Services.IPersistAndRestoreService.

Definition at line 44 of file PersistAndRestoreService.cs.

Member Data Documentation

◆ _appConfig

readonly AppConfig Vereinsmeisterschaften.Services.PersistAndRestoreService._appConfig
private

Definition at line 18 of file PersistAndRestoreService.cs.

◆ _fileService

readonly IFileService Vereinsmeisterschaften.Services.PersistAndRestoreService._fileService
private

Definition at line 17 of file PersistAndRestoreService.cs.

◆ _localAppData

readonly string Vereinsmeisterschaften.Services.PersistAndRestoreService._localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
private

Definition at line 19 of file PersistAndRestoreService.cs.


The documentation for this class was generated from the following file: