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