30 references to GetCurrent
aspire (1)
Certificates\CertificateGeneration\WindowsCertificateManager.cs (1)
144var currentUser = WindowsIdentity.GetCurrent();
Aspire.Hosting.RemoteHost (1)
JsonRpcServer.cs (1)
75var currentUser = WindowsIdentity.GetCurrent().User;
csc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
669var currentIdentity = WindowsIdentity.GetCurrent();
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
dotnet (2)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
669var currentIdentity = WindowsIdentity.GetCurrent();
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.8.0-1.26268.104\contentFiles\cs\net11.0\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Microsoft.AspNetCore.DataProtection (3)
Repositories\RegistryXmlRepository.cs (1)
94WindowsIdentity.GetCurrent()!.User!.Value);
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
104using (var currentIdentity = WindowsIdentity.GetCurrent())
XmlEncryption\DpapiXmlEncryptor.cs (1)
59_logger.EncryptingToWindowsDPAPIForCurrentUserAccount(WindowsIdentity.GetCurrent().Name);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
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)
669var currentIdentity = WindowsIdentity.GetCurrent();
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.DotNet.Cli.Utils (1)
Windows.cs (1)
25new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
297currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
156Dim ntIdentity As Principal.WindowsIdentity = Principal.WindowsIdentity.GetCurrent
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
ObjectModel\TestRun.cs (1)
70_runUser = WindowsIdentity.GetCurrent().Name;
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
601using WindowsIdentity identity = WindowsIdentity.GetCurrent();
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Utils.cs (1)
537using (WindowsIdentity currentIdentity = System.Security.Principal.WindowsIdentity.GetCurrent())
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsPrincipal.cs (1)
183private static WindowsPrincipal GetDefaultInstance() => new WindowsPrincipal(WindowsIdentity.GetCurrent());
System.ServiceModel.Primitives (1)
System\ServiceModel\Security\SecurityUtils.cs (1)
796using (WindowsIdentity self = WindowsIdentity.GetCurrent())
vbc (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
669var currentIdentity = WindowsIdentity.GetCurrent();
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
669var currentIdentity = WindowsIdentity.GetCurrent();
src\roslyn\src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentIdentity = WindowsIdentity.GetCurrent();