39 references to MachineName
AksDemo.ApiService (3)
Program.cs (3)
21machineName = Environment.MachineName, 37machineName = Environment.MachineName 42machineName = Environment.MachineName,
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
80var identifier = $"{Environment.MachineName}-{eventHubName}-" +
Aspire.Hosting (4)
Lifecycle\TerminalHostOrphanCleanupService.cs (3)
211?? $"name:{Environment.MachineName}"; 214return $"linux:{machineScope}:{Environment.MachineName}:pidns:{pidNamespace}"; 217return $"machine:{Environment.MachineName}";
Orchestrator\ApplicationOrchestrator.cs (1)
357Url = $"{allocatedEndpoint.UriScheme}://{Environment.MachineName}:{allocatedEndpoint.Port}",
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
850url => Assert.StartsWith($"https://{Environment.MachineName}:", url.Url));
CertManagerDemo.ApiService (2)
Program.cs (2)
24machineName = Environment.MachineName, 47machineName = Environment.MachineName,
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
94_serverName ??= Environment.MachineName;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
814return $"{Environment.MachineName}_{Guid.NewGuid():N}";
Microsoft.Build.Tasks.Core (1)
ManifestUtil\PathUtil.cs (1)
230$"{path.AsSpan(0, i)}{Environment.MachineName.ToLowerInvariant()}{path.AsSpan(i + localHost.Length)}" :
Microsoft.ML.FastTree (1)
FastTree.cs (1)
817ch.Trace("Host = {0}", Environment.MachineName);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Devices\ServerComputer.vb (2)
80''' This property wraps the <see cref="Environment.MachineName"/> property 86Return Environment.MachineName
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
101_hostName = Environment.MachineName
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
312Environment.GetEnvironmentVariable("UserName"), Environment.MachineName,
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (11)
ObjectModel\TestRun.cs (1)
64_name = string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_TestRunName, Environment.GetEnvironmentVariable("UserName"), Environment.MachineName, FormatDateTimeForRunName(DateTime.Now));
TrxLogger.cs (3)
295runMessage = new RunInfo(e.Message, null, Environment.MachineName, TrxLoggerObjectModel.TestOutcome.Warning); 304runMessage = new RunInfo(e.Message, null, Environment.MachineName, TrxLoggerObjectModel.TestOutcome.Error); 455RunInfo runMessage = new(msg, null, Environment.MachineName, TrxLoggerObjectModel.TestOutcome.Error);
Utility\Converter.cs (7)
449targetDirectory = Path.Combine(targetDirectory, Environment.MachineName); 474string fileName = Path.Combine(Environment.MachineName, Path.GetFileName(targetFileName)); 490Environment.MachineName, 505testResultDirectory = Path.Combine(testResultDirectory, Environment.MachineName); 529string fileName = Path.Combine(Environment.MachineName, Path.GetFileName(targetFileName)); 689new TestResultAggregation(runId, testId, executionId, parentExecutionId, resultName, Environment.MachineName, outcome, testType, testCategoryId, _trxFileHelper) : 690new UnitTestResult(runId, testId, executionId, parentExecutionId, resultName, Environment.MachineName, outcome, testType, testCategoryId, _trxFileHelper);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
20private readonly string _machineName = Environment.MachineName;
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\Context.cs (1)
75_serverName = Environment.MachineName;
System\DirectoryServices\AccountManagement\Utils.cs (1)
548string s = Environment.MachineName;
System.Management (3)
System\Management\ManagementEventWatcher.cs (1)
626(string.Equals(eventWatcher.Scope.Path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase)))
System\Management\WmiEventSink.cs (2)
79(string.Equals(this.path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase))) 91(string.Equals(this.scope.Path.Server, System.Environment.MachineName, StringComparison.OrdinalIgnoreCase)))
System.Net.Security (1)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
57private static readonly byte[] s_workstation = Encoding.Unicode.GetBytes(Environment.MachineName);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
58public static string UserDomainName => MachineName;
System.Windows.Forms (1)
System\Windows\Forms\SystemInformation.cs (1)
480public static string ComputerName => Environment.MachineName;