36 instantiations of InternalMicrosoftProbe
aspire (11)
Telemetry\InternalMicrosoftDetector.cs (11)
180stage1.Add(new("Mac Platform SSO", CheckMacPlatformSsoAsync)); 190stage2.Add(new("Environment GitHub token membership", CheckEnvironmentGitHubTokenAsync)); 193stage2.Add(new("gh CLI GitHub org membership", CheckGhCliAsync)); 196stage2.Add(new("Copilot CLI GitHub org membership", CheckCopilotCliAsync)); 205stage1.Add(new("Windows USERDNSDOMAIN", CheckWindowsUserDnsDomainAsync)); 209stage1.Add(new(VisualStudioMicrosoftTenantProbeName, CheckVisualStudioMicrosoftTenantAsync)); 215stage2.Add(new("Windows workplace join", CheckWindowsWorkplaceJoinAsync)); 223stage1.Add(new("WSL Windows USERDNSDOMAIN", CheckWslWindowsUserDnsDomainAsync)); 227stage1.Add(new(WslVisualStudioMicrosoftTenantProbeName, CheckWslVisualStudioMicrosoftTenantAsync)); 233stage2.Add(new("WSL Windows workplace join", CheckWslWindowsWorkplaceJoinAsync)); 234stage2.Add(new("WSL Windows gh.exe GitHub org membership", CheckWslWindowsGhCliAsync));
Aspire.Cli.Tests (25)
Telemetry\InternalMicrosoftDetectorTests.cs (25)
63new InternalMicrosoftProbe("should not run", _ => 91[[new InternalMicrosoftProbe("slow", async cancellationToken => 148[new InternalMicrosoftProbe("positive", _ => Task.FromResult(new InternalMicrosoftProbeResult(IsInternalMicrosoft: true, Alias: "stale.alias", Domain: "STALE")))] 178[new InternalMicrosoftProbe("stage 1", _ => 183[new InternalMicrosoftProbe("stage 2", _ => 188[new InternalMicrosoftProbe("stage 3", _ => 215new InternalMicrosoftProbe("positive", async _ => 220new InternalMicrosoftProbe("slow", async cancellationToken => 259[[new InternalMicrosoftProbe("late positive", async cancellationToken => 291new InternalMicrosoftProbe("weak", async _ => 303new InternalMicrosoftProbe("strong", async _ => 333[new InternalMicrosoftProbe("faulting", _ => throw new NotSupportedException("Unexpected probe failure."))], 334[new InternalMicrosoftProbe("positive", _ => Task.FromResult(new InternalMicrosoftProbeResult(IsInternalMicrosoft: true, Alias: "later.alias", Domain: "LATER")))] 359[[new InternalMicrosoftProbe("negative", _ => Task.FromResult(InternalMicrosoftProbeResult.NotDetected))]]); 377[[new InternalMicrosoftProbe("faulting", _ => throw new NotSupportedException("Unexpected probe failure."))]]); 424new InternalMicrosoftProbe("negative", _ => Task.FromResult(InternalMicrosoftProbeResult.NotDetected)), 425new InternalMicrosoftProbe("failed", _ => Task.FromResult(InternalMicrosoftProbeResult.Failed(new( 446[[new InternalMicrosoftProbe("slow", async cancellationToken => 470[[new InternalMicrosoftProbe("hung", async _ => 506[[new InternalMicrosoftProbe("current source", _ => 529[[new InternalMicrosoftProbe("CI negative", _ => Task.FromResult(InternalMicrosoftProbeResult.NotDetected))]], 543[[new InternalMicrosoftProbe("local positive", _ => 953[[new InternalMicrosoftProbe("Mac Platform SSO", _ => Task.FromResult(probeResult))]]); 1026[[new InternalMicrosoftProbe("Mac Platform SSO", _ => Task.FromResult( 1190[[new InternalMicrosoftProbe("github", cancellationToken =>
12 references to InternalMicrosoftProbe
aspire (11)
Telemetry\InternalMicrosoftDetector.cs (11)
62private readonly IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>>? _probeStages; 89IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>>? probeStages, 163private IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>> CreateDefaultProbeStages() 175var stage1 = new List<InternalMicrosoftProbe>(); 186var stage2 = new List<InternalMicrosoftProbe>(); 287private async Task<InternalMicrosoftProbeStageResult> RunProbeStageAsync(IReadOnlyList<InternalMicrosoftProbe> probes, CancellationToken cancellationToken) 336foreach (var probe in probes) 362private Task<InternalMicrosoftProbeRunResult> RunProbeAsync(InternalMicrosoftProbe probe, CancellationToken cancellationToken) 454private static int GetProbeIndex(IReadOnlyList<InternalMicrosoftProbe> probes, InternalMicrosoftProbe probe) 1912private sealed record InternalMicrosoftProbeRunResult(InternalMicrosoftProbe Probe, string Source, InternalMicrosoftProbeResult Result, InternalMicrosoftProbeDiagnostic Diagnostic, long CompletionTimestamp);
Aspire.Cli.Tests (1)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1653IReadOnlyList<IReadOnlyList<InternalMicrosoftProbe>>? probeStages,