internal bool CompareToCache(string AssemblyPath, string srcTypeLib) { bool flag = true; try { string cacheName = CacheInfo.GetCacheName(AssemblyPath, srcTypeLib); if (!File.Exists(AssemblyPath)) { return(false); } if (!File.Exists(cacheName)) { return(false); } } catch (Exception exception) { if ((exception is NullReferenceException) || (exception is SEHException)) { throw; } flag = false; ComSoapPublishError.Report(exception.ToString()); } return(flag); }
internal bool GetFromCache(string AssemblyPath, string srcTypeLib) { try { string cacheName = CacheInfo.GetCacheName(AssemblyPath, srcTypeLib); return(File.Exists(cacheName) && CopyFile(cacheName, AssemblyPath, true)); } catch (Exception exception) { if ((exception is NullReferenceException) || (exception is SEHException)) { throw; } ComSoapPublishError.Report(exception.ToString()); } return(false); }
public void GetAssemblyNameForCache(string TypeLibPath, out string CachePath) { CacheInfo.GetMetadataName(TypeLibPath, null, out CachePath); CachePath = CacheInfo.GetCacheName(CachePath, TypeLibPath); }