For Babelfish Release 1.11.3.13

Initializer Class

Static class, who's Initialize() method should be called at the start of any program using BabelFish.

Example

var xApiKey = "GyaHV300my60rs2ylKug5aUgFnYBj6GrU6V1WE33"; var localStoreDirectory = @"C:\temp"; Scopos.BabelFish.Runtime.Settings.Initialize( xApiKey, localStoreDirectory, false );

Definition

Namespace: Scopos.BabelFish.Runtime
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.3.13+877481945de6b4d2a3a561fea58e2494717cd263
C#
public static class Initializer
Inheritance
Object    Initializer

Properties

AutoDownloadNewDefinitionVersions Gets and Sets the Definition Cache's property to automatically download new definition versions when avaliable from the REST API.
UpTime Returns the uptime of this application.

Methods

CheckForSharedXApiKey Checks to see if the user set a shared key as the x-api-key. Provices a warning to the user, both in the log file and console, if true.
ClearCache Clears all cache from the BabelFish library. With option to run the Definition.PreLoad() method to load common Definition files.
Initialize(String, Boolean) Sets the x-api-key used thorughout Babelfish, and initializes the JSON serializers and deserializers.

To obtain an x-api-key visit Scopos' support pages to learn how.

Initialize(String, String, Boolean) Sets the x-api-key used thorughout Babelfish, and initializes the JSON serializers and deserializers.

To obtain an x-api-key visit Scopos' support pages to learn how.

UpdateLocalStoreDirectory Sets the full path to where cached REST API responses, includeing definition files, are stored.

The default path is c:/temp/.

The user must have write permission to this directory.

See Also