77 references to _WinInetCache
System (77)
net\System\Net\_SafeNetHandles.cs (5)
2979
internal unsafe static
_WinInetCache
.Status GetAndLockFile(string key, byte* entryPtr, ref int entryBufSize, out SafeUnlockUrlCacheEntryFile handle) {
2994
unsafe private static
_WinInetCache
.Status MustRunGetAndLockFile(char* key, byte* entryPtr, ref int entryBufSize, SafeUnlockUrlCacheEntryFile handle) {
2995
_WinInetCache
.Status error =
_WinInetCache
.Status.Success;
3003
error = (
_WinInetCache
.Status)Marshal.GetLastWin32Error();
net\System\Net\Cache\IERequestCache.cs (66)
128
_WinInetCache
.Entry entry = new
_WinInetCache
.Entry(key, _MaximumResponseHeadersLength);
130
if (
_WinInetCache
.Remove(entry) !=
_WinInetCache
.Status.Success && entry.Error !=
_WinInetCache
.Status.FileNotFound) {
161
_WinInetCache
.Entry entry = new
_WinInetCache
.Entry(key, _MaximumResponseHeadersLength);
163
if (
_WinInetCache
.Remove(entry) ==
_WinInetCache
.Status.Success || entry.Error ==
_WinInetCache
.Status.FileNotFound) {
172
_WinInetCache
.Status status =
_WinInetCache
.LookupInfo(entry);
173
if (status ==
_WinInetCache
.Status.Success) {
180
status =
_WinInetCache
.LookupInfo(entry);
183
_WinInetCache
.Remove(entry);
184
if (entry.Error !=
_WinInetCache
.Status.Success &&
_WinInetCache
.LookupInfo(entry) ==
_WinInetCache
.Status.FileNotFound) {
185
entry.Error =
_WinInetCache
.Status.Success;
188
return entry.Error ==
_WinInetCache
.Status.Success;
233
_WinInetCache
.Entry entry = new
_WinInetCache
.Entry(key, _MaximumResponseHeadersLength);
235
handle =
_WinInetCache
.LookupFile(entry);
237
if (entry.Error ==
_WinInetCache
.Status.Success) {
313
if (entry.Error !=
_WinInetCache
.Status.FileNotFound)
403
_WinInetCache
.Entry entry = new
_WinInetCache
.Entry(key, _MaximumResponseHeadersLength);
408
entry.Info.ExpireTime =
_WinInetCache
.FILETIME.Zero;
410
entry.Info.ExpireTime = new
_WinInetCache
.FILETIME(expiresUtc.ToFileTimeUtc());
413
entry.Info.LastModifiedTime =
_WinInetCache
.FILETIME.Zero;
415
entry.Info.LastModifiedTime = new
_WinInetCache
.FILETIME(lastModifiedUtc.ToFileTimeUtc());
418
entry.Info.EntryType =
_WinInetCache
.EntryType.NormalEntry;
424
entry.Info.EntryType =
_WinInetCache
.EntryType.StickyEntry;
459
_WinInetCache
.CreateFileName(entry);
462
if (entry.Error !=
_WinInetCache
.Status.Success) {
521
_WinInetCache
.Entry entry = new
_WinInetCache
.Entry(key, _MaximumResponseHeadersLength);
522
_WinInetCache
.Entry_FC attributes =
_WinInetCache
.Entry_FC.None;
525
attributes |=
_WinInetCache
.Entry_FC.Exptime;
526
entry.Info.ExpireTime = new
_WinInetCache
.FILETIME(expiresUtc.ToFileTimeUtc());
531
attributes |=
_WinInetCache
.Entry_FC.Modtime;
532
entry.Info.LastModifiedTime = new
_WinInetCache
.FILETIME(lastModifiedUtc.ToFileTimeUtc());
537
attributes |=
_WinInetCache
.Entry_FC.Synctime;
538
entry.Info.LastSyncTime = new
_WinInetCache
.FILETIME(lastSynchronizedUtc.ToFileTimeUtc());
543
attributes |=
_WinInetCache
.Entry_FC.ExemptDelta|
_WinInetCache
.Entry_FC.Attribute;
544
entry.Info.EntryType =
_WinInetCache
.EntryType.NormalEntry;
549
entry.Info.EntryType =
_WinInetCache
.EntryType.StickyEntry;
561
attributes |=
_WinInetCache
.Entry_FC.Headerinfo;
584
_WinInetCache
.Update(entry, attributes) ;
586
if (entry.Error !=
_WinInetCache
.Status.Success) {
627
internal ReadStream(
_WinInetCache
.Entry entry, SafeUnlockUrlCacheEntryFile handle, bool async)
799
private
_WinInetCache
.Entry m_Entry;
814
internal WriteStream(
_WinInetCache
.Entry entry, bool isThrow, long streamSize, bool async):
1020
_WinInetCache
.Status errorStatus =
_WinInetCache
.Remove(m_Entry);
1021
if (errorStatus !=
_WinInetCache
.Status.Success && errorStatus !=
_WinInetCache
.Status.FileNotFound)
1055
if (
_WinInetCache
.Commit(m_Entry) !=
_WinInetCache
.Status.Success)
1087
if ((m_Entry.Info.EntryType &
_WinInetCache
.EntryType.StickyEntry) ==
_WinInetCache
.EntryType.StickyEntry)
1089
if (
_WinInetCache
.Update(m_Entry,
_WinInetCache
.Entry_FC.ExemptDelta) !=
_WinInetCache
.Status.Success)
net\System\Net\Cache\RequestCacheEntry.cs (2)
52
internal RequestCacheEntry(
_WinInetCache
.Entry entry, bool isPrivateEntry)
67
m_IsPartialEntry = (entry.Info.EntryType &
_WinInetCache
.EntryType.Sparse) != 0;
net\System\Net\UnsafeNativeMethods.cs (4)
1957
[In]
_WinInetCache
.FILETIME expireTime,
1958
[In]
_WinInetCache
.FILETIME lastModifiedTime,
1959
[In]
_WinInetCache
.EntryType EntryType,
1977
[In]
_WinInetCache
.Entry_FC fieldControl