39 references to MachineName
AksDemo.ApiService (3)
Program.cs (3)
21
machineName = Environment.
MachineName
,
37
machineName = Environment.
MachineName
42
machineName = Environment.
MachineName
,
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
80
var identifier = $"{Environment.
MachineName
}-{eventHubName}-" +
Aspire.Hosting (4)
Lifecycle\TerminalHostOrphanCleanupService.cs (3)
211
?? $"name:{Environment.
MachineName
}";
214
return $"linux:{machineScope}:{Environment.
MachineName
}:pidns:{pidNamespace}";
217
return $"machine:{Environment.
MachineName
}";
Orchestrator\ApplicationOrchestrator.cs (1)
357
Url = $"{allocatedEndpoint.UriScheme}://{Environment.
MachineName
}:{allocatedEndpoint.Port}",
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
850
url => Assert.StartsWith($"https://{Environment.
MachineName
}:", url.Url));
CertManagerDemo.ApiService (2)
Program.cs (2)
24
machineName = Environment.
MachineName
,
47
machineName = Environment.
MachineName
,
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
94
_serverName ??= Environment.
MachineName
;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
814
return $"{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)
817
ch.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
86
Return Environment.
MachineName
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
101
_hostName = Environment.
MachineName
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
312
Environment.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)
295
runMessage = new RunInfo(e.Message, null, Environment.
MachineName
, TrxLoggerObjectModel.TestOutcome.Warning);
304
runMessage = new RunInfo(e.Message, null, Environment.
MachineName
, TrxLoggerObjectModel.TestOutcome.Error);
455
RunInfo runMessage = new(msg, null, Environment.
MachineName
, TrxLoggerObjectModel.TestOutcome.Error);
Utility\Converter.cs (7)
449
targetDirectory = Path.Combine(targetDirectory, Environment.
MachineName
);
474
string fileName = Path.Combine(Environment.
MachineName
, Path.GetFileName(targetFileName));
490
Environment.
MachineName
,
505
testResultDirectory = Path.Combine(testResultDirectory, Environment.
MachineName
);
529
string fileName = Path.Combine(Environment.
MachineName
, Path.GetFileName(targetFileName));
689
new TestResultAggregation(runId, testId, executionId, parentExecutionId, resultName, Environment.
MachineName
, outcome, testType, testCategoryId, _trxFileHelper) :
690
new UnitTestResult(runId, testId, executionId, parentExecutionId, resultName, Environment.
MachineName
, outcome, testType, testCategoryId, _trxFileHelper);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
20
private 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)
548
string 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)
57
private 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)
58
public static string UserDomainName =>
MachineName
;
System.Windows.Forms (1)
System\Windows\Forms\SystemInformation.cs (1)
480
public static string ComputerName => Environment.
MachineName
;