43 references to GetCurrent
csc (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
547var currentIdentity = WindowsIdentity.GetCurrent();
src\Compilers\Shared\NamedPipeUtil.cs (1)
70var currentIdentity = WindowsIdentity.GetCurrent();
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
47var identity = WindowsIdentity.GetCurrent();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = WindowsIdentity.GetCurrent();
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
47var identity = WindowsIdentity.GetCurrent();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = WindowsIdentity.GetCurrent();
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
47var identity = WindowsIdentity.GetCurrent();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = WindowsIdentity.GetCurrent();
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
47var identity = WindowsIdentity.GetCurrent();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = WindowsIdentity.GetCurrent();
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
47var identity = WindowsIdentity.GetCurrent();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = WindowsIdentity.GetCurrent();
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
17var identity = 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\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Microsoft.Build.Engine (1)
LocalProvider\LocalNodeProviderGlobalNames.cs (1)
159string usernamePostFix = System.Security.Principal.WindowsIdentity.GetCurrent().Name.Replace("\\", "_");
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
547var currentIdentity = WindowsIdentity.GetCurrent();
src\Compilers\Shared\NamedPipeUtil.cs (1)
70var currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
296currentIdentity = WindowsIdentity.GetCurrent();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
161Thread.CurrentPrincipal = New Principal.WindowsPrincipal(Principal.WindowsIdentity.GetCurrent)
MSBuildTaskHost (3)
CommunicationsUtilities.cs (1)
692if (new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator))
NodeEndpointOutOfProcBase.cs (2)
218SecurityIdentifier identifier = WindowsIdentity.GetCurrent().Owner; 433WindowsIdentity currentIdentity = WindowsIdentity.GetCurrent();
Replay (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
547var currentIdentity = WindowsIdentity.GetCurrent();
src\Compilers\Shared\NamedPipeUtil.cs (1)
70var currentIdentity = WindowsIdentity.GetCurrent();
RunTests (1)
ProcDumpUtil.cs (1)
40using var identity = WindowsIdentity.GetCurrent();
System.ServiceModel.Primitives (1)
System\ServiceModel\Security\SecurityUtils.cs (1)
794using (WindowsIdentity self = WindowsIdentity.GetCurrent())
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
Templates.Tests (1)
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (1)
143var currentUser = WindowsIdentity.GetCurrent();
vbc (4)
src\Compilers\Shared\BuildServerConnection.cs (1)
547var currentIdentity = WindowsIdentity.GetCurrent();
src\Compilers\Shared\NamedPipeUtil.cs (3)
70var currentIdentity = WindowsIdentity.GetCurrent(); 136var currentIdentity = WindowsIdentity.GetCurrent(); 160SecurityIdentifier identifier = WindowsIdentity.GetCurrent().Owner;
VBCSCompiler (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
547var currentIdentity = WindowsIdentity.GetCurrent();
src\Compilers\Shared\NamedPipeUtil.cs (1)
70var currentIdentity = WindowsIdentity.GetCurrent();
VBCSCompiler.UnitTests (1)
BuildClientTests.cs (1)
109mutexSecurity.AddAccessRule(new MutexAccessRule(WindowsIdentity.GetCurrent().Owner, MutexRights.FullControl, AccessControlType.Deny));