C# Class Electro.StatePersister

Datei anzeigen Open project: HackerDom/ructfe-2015 Class Usage Examples

Public Methods

Method Description
LoadElections ( ) : IEnumerable
LoadKeys ( ) : PrivateKey>>.IEnumerable
LoadUsers ( ) : IEnumerable
SaveAllElections ( IEnumerable elections ) : void
SaveKey ( System.Guid electionId, PrivateKey privateKey ) : void
SaveUser ( User user ) : void
StatePersister ( ) : System

Method Details

LoadElections() public static method

public static LoadElections ( ) : IEnumerable
return IEnumerable

LoadKeys() public static method

public static LoadKeys ( ) : PrivateKey>>.IEnumerable
return PrivateKey>>.IEnumerable

LoadUsers() public static method

public static LoadUsers ( ) : IEnumerable
return IEnumerable

SaveAllElections() public static method

public static SaveAllElections ( IEnumerable elections ) : void
elections IEnumerable
return void

SaveKey() public method

public SaveKey ( System.Guid electionId, PrivateKey privateKey ) : void
electionId System.Guid
privateKey Electro.Crypto.PrivateKey
return void

SaveUser() public method

public SaveUser ( User user ) : void
user Electro.Model.User
return void

StatePersister() public method

public StatePersister ( ) : System
return System