Ejemplo n.º 1
0
 /// <summary>
 /// EnsureExists_ParseStatus - we want to make sure our respective ParseStatus item exists, but NOT refresh it.
 /// </summary>
 /// <param name="targetFile"></param>
 public static void EnsureExists(string targetFile)
 {
     lock (_synchronizationParseStatus)
     {
         if (!ParseStatus.ContainsKey(targetFile))
         {
             Init(targetFile);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Init  - we want to make sure the ParseStatus for this file is freshly initialized (e.g. when opening / re-opening a file)
 /// </summary>
 /// <param name="targetFile"></param>
 public static void Init(string targetFile)
 {
     lock (_synchronizationParseStatus)
     {
         if (!ParseStatus.ContainsKey(targetFile))
         {
             ParseStatus.Add(targetFile, new ParseAttribute());
         }
         else
         {
             ParseStatus[targetFile] = new ParseAttribute();
         }
     }
 }