18 references to MachineName
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
80var identifier = $"{Environment.MachineName}-{eventHubName}-" +
Aspire.Hosting (1)
Orchestrator\ApplicationOrchestrator.cs (1)
270Url = $"{allocatedEndpoint.UriScheme}://{Environment.MachineName}:{allocatedEndpoint.Port}",
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
654url => Assert.StartsWith($"https://{Environment.MachineName}:", url.Url));
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.Engine.UnitTests (2)
Definition\ToolsetReader_Tests.cs (2)
2622Assert.Equal(Environment.MachineName, values["4.0"].Properties["p3"].EvaluatedValue); 2672+ Environment.MachineName
Microsoft.Build.Tasks.Core (1)
ManifestUtil\PathUtil.cs (1)
231$"{path.Substring(0, i)}{Environment.MachineName.ToLowerInvariant()}{path.Substring(i + localHost.Length)}" :
Microsoft.Build.Tasks.UnitTests (2)
Exec_Tests.cs (1)
304string working = @"\\" + Environment.MachineName + @"\c$";
FormatUrl_Tests.cs (1)
176t.OutputUrl.ShouldBe(@"https://" + Environment.MachineName.ToLowerInvariant() + "/Example/Path");
Microsoft.ML.FastTree (1)
FastTree.cs (1)
817ch.Trace("Host = {0}", Environment.MachineName);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Interaction.vb (1)
516If String.Equals(Environment.MachineName, ServerName, StringComparison.OrdinalIgnoreCase) Then
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\ServerComputerTests.cs (1)
13Assert.Equal(Environment.MachineName, computer.Name);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
20private readonly string _machineName = Environment.MachineName;
System.Drawing.Common.Tests (1)
System\Drawing\IconTests.cs (1)
359string bitmapUncPath = $"\\\\{Environment.MachineName}\\{bitmapPath[..bitmapPathRoot.IndexOf(':')]}$\\{bitmapPath.Replace(bitmapPathRoot, "")}";
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\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;