2 writes to _savedToken
System.Web (2)
ImpersonationContext.cs (2)
43
_savedToken
= new HandleRef(this, IntPtr.Zero);
52
_savedToken
= new HandleRef(this, GetCurrentToken());
5 references to _savedToken
System.Web (5)
ImpersonationContext.cs (5)
40
if (
_savedToken
.Handle != IntPtr.Zero) {
42
UnsafeNativeMethods.CloseHandle(
_savedToken
.Handle);
54
if (
_savedToken
.Handle != IntPtr.Zero) {
84
if (
_savedToken
.Handle != IntPtr.Zero) {
86
if (UnsafeNativeMethods.SetThreadToken(IntPtr.Zero,
_savedToken
.Handle) == 0) {