C# Class TrolleyTracker.Models.TrolleyCache

Global cache to quickly satisfy large number of client queries from cache.
Mostrar archivo Open project: codeforgreenville/trolley-tracker-api-dot-net Class Usage Examples

Public Methods

Method Description
GetRunningTrolleys ( bool isDebug ) : List
Initialize ( ) : void
UpdateTrolley ( Trolley trolley ) : void

Private Methods

Method Description
AgeCacheEntries ( ) : void

Check items in cache periodically and remove any that are inactive (haven't called Update() for max age period) Call from inside a lock() statement

CheckActiveRoutes ( ) : void
SetRoutesActive ( ) : void

Method Details

GetRunningTrolleys() public static method

public static GetRunningTrolleys ( bool isDebug ) : List
isDebug bool
return List

Initialize() public static method

public static Initialize ( ) : void
return void

UpdateTrolley() public static method

public static UpdateTrolley ( Trolley trolley ) : void
trolley Trolley
return void