17 writes to Error
System (17)
net\System\Net\Cache\IERequestCache.cs (1)
185entry.Error = _WinInetCache.Status.Success;
net\System\Net\Cache\WinInetCache.cs (16)
241entry.Error = Status.Success; 245entry.Error = (Status)Marshal.GetLastWin32Error(); 276entry.Error = SafeUnlockUrlCacheEntryFile.GetAndLockFile(entry.Key, entryPtr, ref size, out handle); 306entry.Error = Status.InternalError; 338entry.Error = Status.Success; 344entry.Error = (Status) Marshal.GetLastWin32Error(); 358entry.Error = Status.InsufficientBuffer; 362entry.Error = Status.Success; 380entry.Error = (Status)Marshal.GetLastWin32Error(); 397newEntry.Error = Status.Success; 407newEntry.Error = (Status)Marshal.GetLastWin32Error(); 421newEntry.Error = oldEntry.Error; 460newEntry.Error = oldEntry.Error; 503entry.Error = Status.Success; 505entry.Error = (Status)Marshal.GetLastWin32Error(); 539entry.Error = Status.Success;
47 references to Error
System (47)
net\System\Net\Cache\IERequestCache.cs (30)
130if (_WinInetCache.Remove(entry) != _WinInetCache.Status.Success && entry.Error != _WinInetCache.Status.FileNotFound) { 131Win32Exception win32Exception = new Win32Exception((int)entry.Error); 136if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.Remove(), ", key, entry.Error.ToString())); 163if (_WinInetCache.Remove(entry) == _WinInetCache.Status.Success || entry.Error == _WinInetCache.Status.FileNotFound) { 164if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString())); 168if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_remove_failed_status, "WinInetCache.TryRemove()", key, entry.Error.ToString())); 175if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString())); 184if (entry.Error != _WinInetCache.Status.Success && _WinInetCache.LookupInfo(entry) == _WinInetCache.Status.FileNotFound) { 187if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString())); 188return entry.Error == _WinInetCache.Status.Success; 237if (entry.Error == _WinInetCache.Status.Success) { 238if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_filename, "WinInetCache.Retrieve()", entry.Filename, entry.Error)); 313if (entry.Error != _WinInetCache.Status.FileNotFound) 315if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_lookup_failed, "WinInetCache.Retrieve()", new Win32Exception((int)entry.Error).Message)); 319Win32Exception win32Exception = new Win32Exception((int)entry.Error); 347if(Logging.On)Logging.Exit(Logging.RequestCache, "WinInetCache.Retrieve()", "Status = " + entry.Error.ToString()); 462if (entry.Error != _WinInetCache.Status.Success) { 465Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_create_failed, new Win32Exception((int)entry.Error).Message)); 470Win32Exception win32Exception = new Win32Exception((int)entry.Error); 586if (entry.Error != _WinInetCache.Status.Success) { 589Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetCache.Update()", entry.Key, new Win32Exception((int)entry.Error).Message)); 594Win32Exception win32Exception = new Win32Exception((int)entry.Error); 600if(Logging.On) Logging.Exit(Logging.RequestCache, "WinInetCache.Update()", "Status = " + entry.Error.ToString()); 1023if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_delete_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1057if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_commit_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1073Win32Exception win32Exception = new Win32Exception((int)m_Entry.Error); 1083Logging.PrintInfo(Logging.RequestCache, "WinInetWriteStream.Close(), Key = " + m_Entry.Key + ", Commit Status = " + m_Entry.Error.ToString()); 1091if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetWriteStream.Close(), Key = " + m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message)); 1094Win32Exception win32Exception = new Win32Exception((int)m_Entry.Error); 1099if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_stale_and_update_status, "WinInetWriteFile.Close()", m_Entry.Info.U.ExemptDelta, m_Entry.Error.ToString()));
net\System\Net\Cache\WinInetCache.cs (17)
242return entry.Error; 246if (entry.Error == Status.InsufficientBuffer) { 259return entry.Error; 278if (entry.Error == Status.Success) { 286if (entry.Error == Status.InsufficientBuffer) { 305if (entry.Error == Status.Success) { 345return entry.Error; 359return entry.Error; 385return entry.Error; 421newEntry.Error = oldEntry.Error; 422return newEntry.Error; 460newEntry.Error = oldEntry.Error; 461return newEntry.Error; 482return newEntry.Error; 496return newEntry.Error; 507return entry.Error; 557return entry.Error;