23 instantiations of InternalMicrosoftProbe
aspire (12)
Telemetry\InternalMicrosoftDetector.cs (12)
141stage1.Add(new("Mac Platform SSO", CheckMacPlatformSsoAsync)); 148new("VS Code Microsoft tenant", CheckVsCodeMicrosoftTenantAsync) 156new("Environment GitHub token membership", CheckEnvironmentGitHubTokenAsync), 159new("gh CLI GitHub org membership", CheckGhCliAsync), 162new("Copilot CLI GitHub org membership", CheckCopilotCliAsync) 171stage1.Add(new("Windows USERDNSDOMAIN", CheckWindowsUserDnsDomainAsync)); 175stage1.Add(new("Visual Studio Microsoft tenant", CheckVisualStudioMicrosoftTenantAsync)); 181stage3.Add(new("Windows workplace join", CheckWindowsWorkplaceJoinAsync)); 189stage1.Add(new("WSL Windows USERDNSDOMAIN", CheckWslWindowsUserDnsDomainAsync)); 193stage1.Add(new("WSL Visual Studio Microsoft tenant", CheckWslVisualStudioMicrosoftTenantAsync)); 199stage3.Add(new("WSL Windows workplace join", CheckWslWindowsWorkplaceJoinAsync)); 200stage3.Add(new("WSL Windows gh.exe GitHub org membership", CheckWslWindowsGhCliAsync));
Aspire.Cli.Tests (11)
Telemetry\InternalMicrosoftDetectorTests.cs (11)
40new InternalMicrosoftProbe("should not run", _ => 74[new InternalMicrosoftProbe("positive", _ => Task.FromResult(new InternalMicrosoftProbeResult(IsInternalMicrosoft: true, Alias: "stale.alias", Domain: "STALE")))] 101[new InternalMicrosoftProbe("stage 1", _ => 106[new InternalMicrosoftProbe("stage 2", _ => 111[new InternalMicrosoftProbe("stage 3", _ => 138new InternalMicrosoftProbe("positive", async _ => 143new InternalMicrosoftProbe("slow", async cancellationToken => 181new InternalMicrosoftProbe("positive", async _ => 186new InternalMicrosoftProbe("faulting", async cancellationToken => 220[new InternalMicrosoftProbe("faulting", _ => throw new NotSupportedException("Unexpected probe failure."))], 221[new InternalMicrosoftProbe("positive", _ => Task.FromResult(new InternalMicrosoftProbeResult(IsInternalMicrosoft: true, Alias: "later.alias", Domain: "LATER")))]
9 references to InternalMicrosoftProbe
aspire (8)
Telemetry\InternalMicrosoftDetector.cs (8)
55private readonly IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>> _probeStages; 76IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>>? probeStages, 124private IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>> CreateDefaultProbeStages() 136var stage1 = new List<InternalMicrosoftProbe>(); 145var stage2 = new List<InternalMicrosoftProbe> 153var stage3 = new List<InternalMicrosoftProbe> 227private async Task<InternalMicrosoftDetectionResult?> RunProbeStageAsync(IReadOnlyList<InternalMicrosoftProbe> probes, CancellationToken cancellationToken) 250private Task<InternalMicrosoftDetectionResult?> RunProbeAsync(InternalMicrosoftProbe probe, CancellationToken cancellationToken)
Aspire.Cli.Tests (1)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
565IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>> probeStages,