For Babelfish Release 1.11.1.3

DefinitionCache Class

Definition

Namespace: Scopos.BabelFish.APIClients
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static class DefinitionCache
Inheritance
Object    DefinitionCache

Methods

ClearCache 
DownloadNewMinorVersionIfAvaliableAsync(Attribute) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(CourseOfFire) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(Definition) 
DownloadNewMinorVersionIfAvaliableAsync(EventAndStageStyleMapping) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(EventStyle) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(RankingRule) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(ResultListFormat) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(ScoreFormatCollection) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(StageStyle) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(Target) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
DownloadNewMinorVersionIfAvaliableAsync(TargetCollection) Method checks to see if there is a new minor release avaliable for the past in Definition. If so, it tries and download it and update the cache.
GetAttributeDefinitionAsync 
GetCacheSize Effectively for unit testing only. Returns the number of definitions in the cache
GetCourseOfFireDefinitionAsync 
GetDefinitionAsync 
GetEventAndStageStyleMappingDefinitionAsync 
GetEventStyleDefinitionAsync 
GetRankingRuleDefinitionAsync 
GetResultListFormatDefinitionAsync 
GetScoreFormatCollectionDefinitionAsync 
GetStageStyleDefinitionAsync 
GetTargetCollectionDefinitionAsync 
GetTargetDefinitionAsync 
PreLoad Preloads the Definiiton Cache with commmon definitions. If used, should help with some start up time.
TryGetAttributeDefinition Tries and returns the Attribute requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetCourseOfFireDefinition Tries and returns the CourseOfFire requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetEventAndStageStyleMappingDefinition Tries and returns the EVENT AND STAGE STYLE MAPPING requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetEventStyleDefinition Tries and returns the EVENT STYLE requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetRankingRuleDefinition Tries and returns the RANKING RULE requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetResultListFormatDefinition Tries and returns the RESULT LIST FORMAT requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetScoreFormatCollectionDefinition Tries and returns the SCORE FORMAT COLLECTION requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetStageStyleDefinition Tries and returns the STAGE STYLE requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetTargetCollectionDefinition Tries and returns the TARGET COLLECTION requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).
TryGetTargetDefinition Tries and returns the TARGET requested, if it has already been loaded into the cache. Returns false, if it has not been loaded yet. Then tries and reads or downloads it in the background. Which means the definition may be avalaible at a latter time (once the getting is successful).

Fields

AutoDownloadNewDefinitionVersions Set to true, to allow the Definition Cache to automatically check, and if avaliable, downlaod newer minor versions of Definition Files.

The runtime.Initializer has the same property .AutoDownloadNewDefinitionVersions, as an easier facade to set / unset.

See Also