Skip to content

aadversteeg/Ave.Extensions.Console.StateManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ave.Extensions.Console.StateManagement

Build Status Nuget downloads GitHub license

Nuget package for managing state of console application.

Console applications lose state after terminating. This package enables to preserve state between multiple invocations of a console application in the same console window.

The process id of the parent, ussually the console window, is used as a key to store the state. The state is stored as a binary file. The contents of this file can be protected using the Data Protection API (DPAPI).

StateScope

Values can be saved ore retrieved using state scope user or session.

Session

Values are stored using the parent process id as key. As long as the terminal window is open, stored values are available.

User

Values are stored using a fixed key. The values are available in all open terminal windows and are preserved after all terminal windows are closed. It as assumed that the path used for FileSessionStorage is only used by the current user.

About

Nuget package for managing state of console application.

Resources

License

Stars

Watchers

Forks

Languages