Exemplo n.º 1
0
 public void RefreshWithContent(string projectContent)
 {
     lock (referenceCache)
         referenceCache.Clear();
     try {
         builder.RefreshWithContent(projectContent);
     } catch (Exception ex) {
         LoggingService.LogError("MSBuild refresh failed", ex);
         CheckDisconnected();
     }
 }
Exemplo n.º 2
0
        public async Task RefreshWithContent(string projectContent)
        {
            using (await referenceCacheLock.EnterAsync())
                referenceCache.Clear();

            await Task.Run(() => {
                try {
                    BeginOperation();
                    builder.RefreshWithContent(projectContent);
                } catch (Exception ex) {
                    LoggingService.LogError("MSBuild refresh failed", ex);
                    CheckDisconnected();
                } finally {
                    EndOperation();
                }
            });
        }
Exemplo n.º 3
0
 public void RefreshWithContent(string projectContent)
 {
     builder.RefreshWithContent(projectContent);
 }
 public void RefreshWithContent(string projectContent)
 {
     lock (referenceCache)
         referenceCache.Clear();
     builder.RefreshWithContent(projectContent);
 }