C# Class EU4.Stats.Web.IncrementIdGenerator

Thread safe incremental counter that picks up with the last id from the previous run of the program
Inheritance: IIdGenerator
ファイルを表示 Open project: nickbabcock/EU4.Savegame Class Usage Examples

Public Methods

Method Description
IncrementIdGenerator ( string gamedir ) : System.IO

Initializes the first id to the max numerical filename in a given directory.

NextId ( ) : string

Method Details

IncrementIdGenerator() public method

Initializes the first id to the max numerical filename in a given directory.
public IncrementIdGenerator ( string gamedir ) : System.IO
gamedir string /// Directory filled with files like "1.html", "2.html" ///
return System.IO

NextId() public method

public NextId ( ) : string
return string