1 instantiation of WindowsImpersonationContext
mscorlib (1)
system\security\principal\windowsidentity.cs (1)
743
WindowsImpersonationContext context = new
WindowsImpersonationContext
(safeTokenHandle, GetCurrentThreadWI(), isImpersonating, secObj);
33 references to WindowsImpersonationContext
mscorlib (9)
system\security\principal\windowsidentity.cs (8)
625
using (
WindowsImpersonationContext
wiContext = SafeImpersonate(safeAccessTokenHandle, wi, ref stackMark))
646
using (
WindowsImpersonationContext
wiContext = SafeImpersonate(safeAccessTokenHandle, wi, ref stackMark))
658
public virtual
WindowsImpersonationContext
Impersonate ()
669
public static
WindowsImpersonationContext
Impersonate (IntPtr userToken)
680
internal
WindowsImpersonationContext
Impersonate (ref StackCrawlMark stackMark) {
718
internal static
WindowsImpersonationContext
SafeRevertToSelf(ref StackCrawlMark stackMark)
726
internal static
WindowsImpersonationContext
SafeImpersonate (SafeAccessTokenHandle userToken, WindowsIdentity wi, ref StackCrawlMark stackMark)
743
WindowsImpersonationContext
context = new WindowsImpersonationContext(safeTokenHandle, GetCurrentThreadWI(), isImpersonating, secObj);
system\security\securitycontext.cs (1)
67
internal
WindowsImpersonationContext
wic;
System (9)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
3728
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
3804
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
compmod\system\codedom\compiler\CodeCompiler.cs (2)
256
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
496
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
compmod\system\codedom\compiler\Executor.cs (3)
117
WindowsImpersonationContext
impersonation = RevertImpersonation();
337
internal static
WindowsImpersonationContext
RevertImpersonation() {
343
internal static void ReImpersonate(
WindowsImpersonationContext
impersonation){
compmod\system\codedom\compiler\TempFiles.cs (2)
71
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
293
WindowsImpersonationContext
impersonation = Executor.RevertImpersonation();
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1534
using (
WindowsImpersonationContext
context = _impersonateIdentity.Impersonate()) {
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
631
WindowsImpersonationContext
context = null;
System.Runtime.Remoting (1)
channels\tcp\tcpserverchannel.cs (1)
561
WindowsImpersonationContext
context = null;
System.ServiceModel (6)
System\ServiceModel\Channels\FramingChannels.cs (1)
1293
WindowsImpersonationContext
impersonationContext = (this.identityToImpersonate == null) ? null : this.identityToImpersonate.Impersonate();
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (1)
408
WindowsImpersonationContext
impersonateContext = null;
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (1)
52
WindowsImpersonationContext
impersonateContext = null;
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (3)
81
WindowsImpersonationContext
impersonateContext = null;
265
WindowsImpersonationContext
impersonationContext;
272
public CorrelationState(
WindowsImpersonationContext
context,
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\MessageRpc.cs (1)
247
WindowsImpersonationContext
impersonation;
System.Web (5)
Configuration\RemoteWebConfigurationHost.cs (3)
86
WindowsImpersonationContext
wiContext = (_Identity != null) ? _Identity.Impersonate() : null;
209
WindowsImpersonationContext
wiContext = null;
333
WindowsImpersonationContext
wiContext = null;
Configuration\RemoteWebConfigurationHostStream.cs (2)
52
WindowsImpersonationContext
wiContext = null;
192
WindowsImpersonationContext
wiContext = null;