25 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.10.0-1.26369.105\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
679var principal = new WindowsPrincipal(currentIdentity);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26369.105\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)
676new 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);