private void AssureSymbolsAreLoaded() { if (this.isLoaded) { return; } lock (this.loadLock) { if (!this.isLoaded) { Exception ex = null; try { this.LoadSymbols(); } catch (IOException ex2) { ex = ex2; } catch (UnauthorizedAccessException ex3) { ex = ex3; } if (ex != null) { OwaServerLogger.AppendToLog(SymbolMapLoadLogEvent.CreateForError(ex)); } this.isLoaded = true; } } }
// Token: 0x06002437 RID: 9271 RVA: 0x00082F3C File Offset: 0x0008113C public JavaScriptSymbolsMap <T> Load() { Dictionary <string, List <T> > symbolMaps = new Dictionary <string, List <T> >(20, StringComparer.InvariantCultureIgnoreCase); Dictionary <uint, string> sourceFileIdMap = new Dictionary <uint, string>(1024); ClientWatsonFunctionNamePool clientWatsonFunctionNamePool = new ClientWatsonFunctionNamePool(); foreach (string filePath in this.symbolMapFiles) { Stopwatch stopwatch = Stopwatch.StartNew(); Exception ex = null; try { this.LoadSymbolsMapFromFile(filePath, symbolMaps, sourceFileIdMap, clientWatsonFunctionNamePool); } catch (XmlException ex2) { ex = ex2; } catch (IOException ex3) { ex = ex3; } catch (SecurityException ex4) { ex = ex4; } finally { stopwatch.Stop(); } SymbolMapLoadLogEvent logEvent; if (ex == null) { logEvent = SymbolMapLoadLogEvent.CreateForSuccess(filePath, stopwatch.Elapsed); } else { logEvent = SymbolMapLoadLogEvent.CreateForError(filePath, ex, stopwatch.Elapsed); } OwaServerLogger.AppendToLog(logEvent); } return(new JavaScriptSymbolsMap <T>(symbolMaps, sourceFileIdMap, clientWatsonFunctionNamePool.ToArray())); }
private void AssureSymbolsAreLoaded() { if (this.symbolsLoaded) { return; } lock (this.loadLock) { try { this.UnsafeAssureSymbolsAreLoaded(); } catch (IOException e) { OwaServerLogger.AppendToLog(SymbolMapLoadLogEvent.CreateForError(e)); } finally { this.symbolsLoaded = true; } } }