14 references to SecurityImpersonation
System.ServiceModel (14)
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (10)
498
if (this.parent.
SecurityImpersonation
!= null)
500
this.parent.
SecurityImpersonation
.StartImpersonation(ref rpc, out impersonationContext, out originalPrincipal, out isThreadPrincipalSet);
568
if (this.parent.
SecurityImpersonation
!= null)
570
this.parent.
SecurityImpersonation
.StopImpersonation(ref rpc, impersonationContext, originalPrincipal, isThreadPrincipalSet);
697
if (this.parent.
SecurityImpersonation
!= null)
699
this.parent.
SecurityImpersonation
.StartImpersonation(ref rpc, out impersonationContext, out originalPrincipal, out isThreadPrincipalSet);
708
if (this.parent.
SecurityImpersonation
!= null)
710
this.parent.
SecurityImpersonation
.StopImpersonation(ref rpc, impersonationContext, originalPrincipal, isThreadPrincipalSet);
851
bool shouldImpersonate = this.parent.
SecurityImpersonation
!= null && this.parent.
SecurityImpersonation
.IsImpersonationEnabledOnCurrentOperation(ref rpc);
System\ServiceModel\Security\ImpersonateOnSerializingReplyMessageProperty.cs (4)
112
if (runtime != null && runtime.
SecurityImpersonation
!= null)
114
runtime.
SecurityImpersonation
.StartImpersonation(ref this.rpc, out impersonationContext, out originalPrincipal, out isThreadPrincipalSet);
138
if (runtime != null && runtime.
SecurityImpersonation
!= null)
140
runtime.
SecurityImpersonation
.StopImpersonation(ref this.rpc, impersonationContext, originalPrincipal, isThreadPrincipalSet);