C# Class Solar.JsonDataSource

Maintains a ConcurrentQueue in memory, saves to JSON at shutdown. WARNING: Can leak memory!
Inheritance: IDataSource
Datei anzeigen Open project: nusolar/sc6-telemetry-code

Public Methods

Method Description
Dispose ( ) : void
GetArchive ( ) : JsonDb
GetConnection ( ) : JsonDb
JsonDataSource ( ) : System
RestoreArchive ( JsonDb archive ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
LoadJson ( ) : void
Save ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetArchive() public method

public GetArchive ( ) : JsonDb
return JsonDb

GetConnection() public method

public GetConnection ( ) : JsonDb
return JsonDb

JsonDataSource() public method

public JsonDataSource ( ) : System
return System

RestoreArchive() public method

public RestoreArchive ( JsonDb archive ) : void
archive JsonDb
return void