19 references to WindowsPrincipal
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
670var 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.8.0-1.26268.104\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
670var principal = new WindowsPrincipal(currentIdentity);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
690newContext.User = new WindowsPrincipal((WindowsIdentity)(windowsIdentity.Clone()));
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
186return new WindowsPrincipal(winIdentity);
Microsoft.Build.Framework (1)
BackEnd\CommunicationsUtilities.cs (1)
641new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator))
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
670var 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)
670var 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)
670var principal = new WindowsPrincipal(currentIdentity);
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
72var currentPrincipal = new WindowsPrincipal(currentIdentity);