Exemplo n.º 1
0
 /// <summary>
 /// Initialise Spark component
 /// </summary>
 /// <remarks>
 /// The Spark API must be initalised before use otherwise many functions will not work correctly, but it won't throw an exception
 /// and will just return an invalid result.
 /// </remarks>
 internal void Initialise()
 {
     lock (_syncLock)
     {
         if (!_isInitiated)
         {
             Spark.Init();
             Spark.SetOptions(Spark.OPTION_ALL_EXCHANGE_EVENTS);
             Spark.SetCacheDir(@"D:\Temp", 4000);
             _isInitiated = true;
         }
     }
 }