Esempio n. 1
0
 /// <inheritdoc />
 public void AddOrUpdate(SourceCodeFile sourceCode)
 {
     if (Project.IsValueCreated)
     {
         lock (SyncLock)
         {
             Sources.AddOrUpdate(sourceCode.Name, sourceCode, (key, value) => sourceCode);
             Project = new Lazy <Project>(CreateProject, true);
         }
     }
     else
     {
         Sources.AddOrUpdate(sourceCode.Name, sourceCode, (key, value) => sourceCode);
     }
 }