C# Class BudgetAnalyser.Encryption.EncryptedLocalDiskReaderWriter

Inheritance: IFileReaderWriter
Datei anzeigen Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
CreateWritableStream ( string fileName ) : Stream
EncryptedLocalDiskReaderWriter ( [ fileEncryptor, [ credentialStore ) : System
FileExists ( string fileName ) : bool

Files the exists.

LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task

Loads a budget collection xaml file from disk.

LoadFromDiskAsync ( string fileName ) : Task

Loads a budget collection xaml file from disk.

WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task

Writes the budget collections to a xaml file on disk.

Private Methods

Method Description
IsValidAlphaNumericWithPunctuation ( string text ) : bool
IsValidUtf8AlphaNumericWithPunctuation ( char c ) : bool
RetrievePassword ( ) : SecureString

Method Details

CreateWritableStream() public method

public CreateWritableStream ( string fileName ) : Stream
fileName string
return Stream

EncryptedLocalDiskReaderWriter() public method

public EncryptedLocalDiskReaderWriter ( [ fileEncryptor, [ credentialStore ) : System
fileEncryptor [
credentialStore [
return System

FileExists() public method

Files the exists.
public FileExists ( string fileName ) : bool
fileName string Full path and filename of the file.
return bool

LoadFirstLinesFromDiskAsync() public method

Loads a budget collection xaml file from disk.
public LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task
fileName string Full path and filename of the file.
lineCount int The number of lines to load.
return Task

LoadFromDiskAsync() public method

Loads a budget collection xaml file from disk.
public LoadFromDiskAsync ( string fileName ) : Task
fileName string Full path and filename of the file.
return Task

WriteToDiskAsync() public method

Writes the budget collections to a xaml file on disk.
public WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task
fileName string
data string
return System.Threading.Tasks.Task