25 instantiations of WindowsPrincipal
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
dotnet (2)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26327.102\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26327.102\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
325user = new WindowsPrincipal(winIdentity);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1063newContext.User = new WindowsPrincipal((WindowsIdentity)(windowsIdentity.Clone()));
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
362return new WindowsPrincipal(identity); 367return new WindowsPrincipal(WindowsIdentity.GetAnonymous()); // Anonymous / !IsAuthenticated
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.cs (1)
913return new WindowsPrincipal(new WindowsIdentity(token, authenticationType));
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
362return new WindowsPrincipal(identity); 367return new WindowsPrincipal(WindowsIdentity.GetAnonymous()); // Anonymous / !IsAuthenticated
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
186return new WindowsPrincipal(winIdentity);
Microsoft.Build.Framework (1)
BackEnd\CommunicationsUtilities.cs (1)
646new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator))
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.DotNet.Cli.Utils (1)
Windows.cs (1)
25new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
302if (currentIdentity != null && new WindowsPrincipal(currentIdentity).IsInRole(WindowsBuiltInRole.Administrator))
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
157Thread.CurrentPrincipal = New Principal.WindowsPrincipal(ntIdentity)
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsPrincipal.cs (1)
183private static WindowsPrincipal GetDefaultInstance() => new WindowsPrincipal(WindowsIdentity.GetCurrent());
vbc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
28 references to WindowsPrincipal
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
dotnet (2)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26327.102\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26327.102\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1059if (OperatingSystem.IsWindows() && oldContext.User is WindowsPrincipal)
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\Request.cs (1)
338internal WindowsPrincipal User { get; }
RequestProcessing\RequestContext.cs (1)
39public WindowsPrincipal User => Request.User;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
342internal WindowsPrincipal GetUser()
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.cs (2)
116internal WindowsPrincipal? WindowsUser { get; set; } 903private WindowsPrincipal? GetWindowsPrincipal()
Core\IISServerAuthenticationHandlerInternal.cs (1)
27var user = _iisHttpContext.WindowsUser;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
342internal WindowsPrincipal GetUser()
Microsoft.AspNetCore.Server.IISIntegration (5)
AuthenticationHandler.cs (2)
13private WindowsPrincipal? _user; 52_user = context.Features.Get<WindowsPrincipal>(); // See IISMiddleware
IISMiddleware.cs (3)
147var user = GetUser(httpContext); 170private static WindowsPrincipal? GetUser(HttpContext context) 197if (context.User is WindowsPrincipal)
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1060[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.WindowsPrincipal))]
System.Net.HttpListener (1)
System\Net\WebSockets\HttpListenerWebSocketContext.cs (1)
94if (!(user is WindowsPrincipal))
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsPrincipal.cs (1)
183private static WindowsPrincipal GetDefaultInstance() => new WindowsPrincipal(WindowsIdentity.GetCurrent());
vbc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);