15 writes to CurrentPrincipal
System.Runtime.Remoting (6)
channels\ipc\ipcserverchannel.cs (3)
414
Thread.
CurrentPrincipal
= new GenericPrincipal(identity, null);
423
Thread.
CurrentPrincipal
= new WindowsPrincipal(identity);
443
Thread.
CurrentPrincipal
= oldPrincipal;
channels\tcp\tcpserverchannel.cs (3)
570
Thread.
CurrentPrincipal
= new WindowsPrincipal(identity);
575
Thread.
CurrentPrincipal
= new GenericPrincipal(identity, null);
593
Thread.
CurrentPrincipal
= oldPrincipal;
System.ServiceModel (2)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (2)
152
Thread.
CurrentPrincipal
= principal;
320
Thread.
CurrentPrincipal
= originalPrincipal;
System.Web (2)
HttpApplication.cs (1)
1236
Thread.
CurrentPrincipal
= user;
Security\BackStopAuthenticationModule.cs (1)
135
Thread.
CurrentPrincipal
= context.User;
System.Web.Extensions (5)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (3)
66
Thread.
CurrentPrincipal
= new ClientRolePrincipal(new ClientFormsIdentity(username, password,
229
Thread.
CurrentPrincipal
= new WindowsPrincipal(WindowsIdentity.GetCurrent());
359
Thread.
CurrentPrincipal
= new ClientRolePrincipal(new ClientFormsIdentity(username, password, this, "ClientForms", true, cookies));
ClientServices\Providers\ClientWindowsAuthenticationMembershipProvider.cs (2)
35
Thread.
CurrentPrincipal
= new ClientRolePrincipal(id);
40
Thread.
CurrentPrincipal
= new WindowsPrincipal(WindowsIdentity.GetCurrent());
45 references to CurrentPrincipal
mscorlib (3)
system\security\claims\ClaimsPrincipal.cs (2)
126
ClaimsPrincipal claimsPrincipal = Thread.
CurrentPrincipal
as ClaimsPrincipal;
132
return new ClaimsPrincipal(Thread.
CurrentPrincipal
);
system\security\permissions\principalpermission.cs (1)
466
principal = Thread.
CurrentPrincipal
;
System.Runtime.Remoting (2)
channels\ipc\ipcserverchannel.cs (1)
406
oldPrincipal = Thread.
CurrentPrincipal
;
channels\tcp\tcpserverchannel.cs (1)
566
oldPrincipal = Thread.
CurrentPrincipal
;
System.ServiceModel (1)
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
151
result = Thread.
CurrentPrincipal
;
System.Web (5)
Security\AuthStoreRoleProvider.cs (1)
656
IPrincipal user = Thread.
CurrentPrincipal
;
Security\Membership.cs (1)
595
IPrincipal user = Thread.
CurrentPrincipal
;
Security\Roles.cs (1)
610
return Thread.
CurrentPrincipal
;
Security\WindowsTokenRoleProvider.cs (1)
202
IPrincipal user = Thread.
CurrentPrincipal
;
ThreadContext.cs (1)
90
_originalThreadPrincipal = Thread.
CurrentPrincipal
;
System.Web.Extensions (32)
ApplicationServices\ApplicationServiceHelper.cs (1)
166
return (context != null) ? context.User : Thread.
CurrentPrincipal
;
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (13)
176
UserValidated(this, new UserValidatedEventArgs(Thread.
CurrentPrincipal
.Identity.Name));
184
UserValidated(this, new UserValidatedEventArgs(Thread.
CurrentPrincipal
.Identity.Name));
198
IPrincipal p = Thread.
CurrentPrincipal
;
290
if (Thread.
CurrentPrincipal
!= null && Thread.
CurrentPrincipal
.Identity is ClientFormsIdentity)
291
currentUser = Thread.
CurrentPrincipal
.Identity.Name;
300
if ((Thread.
CurrentPrincipal
is ClientRolePrincipal) && (Thread.
CurrentPrincipal
.Identity is ClientFormsIdentity) && Thread.
CurrentPrincipal
.Identity.Name == username)
302
cookies = ((ClientFormsIdentity)Thread.
CurrentPrincipal
.Identity).AuthenticationCookies;
355
if ( !(Thread.
CurrentPrincipal
is ClientRolePrincipal) || !(Thread.
CurrentPrincipal
.Identity is ClientFormsIdentity) || Thread.
CurrentPrincipal
.Identity.Name != username)
ClientServices\Providers\ClientRoleProvider.cs (1)
114
IPrincipal p = Thread.
CurrentPrincipal
;
ClientServices\Providers\ClientSettingsProvider.cs (15)
77
IIdentity id = Thread.
CurrentPrincipal
.Identity;
237
_UserName = Thread.
CurrentPrincipal
.Identity.Name;
454
ClientFormsIdentity id = Thread.
CurrentPrincipal
.Identity as ClientFormsIdentity;
471
IIdentity id = Thread.
CurrentPrincipal
.Identity;
590
ClientFormsIdentity id = Thread.
CurrentPrincipal
.Identity as ClientFormsIdentity;
627
IIdentity id = Thread.
CurrentPrincipal
.Identity;
669
ClientData cd = ClientDataManager.GetUserClientData(Thread.
CurrentPrincipal
.Identity.Name, _UsingIsolatedStore);
683
using (DbConnection conn = SqlHelper.GetConnection(Thread.
CurrentPrincipal
.Identity.Name,
750
string username = Thread.
CurrentPrincipal
.Identity.Name;
830
ClientData cd = ClientDataManager.GetUserClientData(Thread.
CurrentPrincipal
.Identity.Name, _UsingIsolatedStore);
840
ClientData cd = ClientDataManager.GetUserClientData(Thread.
CurrentPrincipal
.Identity.Name, _UsingIsolatedStore);
850
ClientData cd = ClientDataManager.GetUserClientData(Thread.
CurrentPrincipal
.Identity.Name, _UsingIsolatedStore);
860
ClientData cd = ClientDataManager.GetUserClientData(Thread.
CurrentPrincipal
.Identity.Name, _UsingIsolatedStore);
869
string username = Thread.
CurrentPrincipal
.Identity.Name;
880
string username = Thread.
CurrentPrincipal
.Identity.Name;
ClientServices\Providers\ProxyHelper.cs (2)
273
if (Thread.
CurrentPrincipal
!= null)
274
username = Thread.
CurrentPrincipal
.Identity.Name;
System.Workflow.Activities (2)
Executors\WorkflowWebService.cs (1)
182
IIdentity identity = System.Threading.Thread.
CurrentPrincipal
.Identity;
LocalService\WorkflowMessageEventHandler.cs (1)
120
IIdentity identity = System.Threading.Thread.
CurrentPrincipal
.Identity;