13 references to SecurityContext
mscorlib (13)
system\security\principal\windowsidentity.cs (1)
779
if (currentThread.GetExecutionContextReader().
SecurityContext
.WindowsIdentity != wi)
system\security\securitycontext.cs (7)
126
Contract.Assert(Thread.CurrentThread.GetExecutionContextReader().
SecurityContext
.IsSame(prevSC));
329
return Thread.CurrentThread.GetExecutionContextReader().
SecurityContext
.IsFlowSuppressed(flags);
416
rData.scsw = SetSecurityContext(rData.sc, Thread.CurrentThread.GetExecutionContextReader().
SecurityContext
, modifyCurrentExecutionContext: true);
569
if (currThreadEC.
SecurityContext
.IsFlowSuppressed(SecurityContextDisableFlow.All))
649
return threadEC.
SecurityContext
.WindowsIdentity;
661
if (cachedAlwaysFlowImpersonationPolicy || prevEC.
SecurityContext
.WindowsIdentity != targetWI)
666
Contract.Assert(_alwaysFlowImpersonationPolicy || currentEC.
SecurityContext
.WindowsIdentity == targetWI);
system\threading\compressedstack.cs (2)
395
return Thread.CurrentThread.GetExecutionContextReader().
SecurityContext
.CompressedStack;
403
if (currentThread.GetExecutionContextReader().
SecurityContext
.CompressedStack != cs)
system\threading\executioncontext.cs (3)
444
if (!Thread.CurrentThread.GetExecutionContextReader().
SecurityContext
.IsSame(_sc))
1059
SecurityContext.Reader prevSeC = outerEC.
SecurityContext
;
1065
SecurityContext.Reader prevSeC = outerEC.
SecurityContext
;