23 instantiations of InternalMicrosoftProbe
aspire (12)
Telemetry\InternalMicrosoftDetector.cs (12)
141
stage1.Add(
new
("Mac Platform SSO", CheckMacPlatformSsoAsync));
148
new
("VS Code Microsoft tenant", CheckVsCodeMicrosoftTenantAsync)
156
new
("Environment GitHub token membership", CheckEnvironmentGitHubTokenAsync),
159
new
("gh CLI GitHub org membership", CheckGhCliAsync),
162
new
("Copilot CLI GitHub org membership", CheckCopilotCliAsync)
171
stage1.Add(
new
("Windows USERDNSDOMAIN", CheckWindowsUserDnsDomainAsync));
175
stage1.Add(
new
("Visual Studio Microsoft tenant", CheckVisualStudioMicrosoftTenantAsync));
181
stage3.Add(
new
("Windows workplace join", CheckWindowsWorkplaceJoinAsync));
189
stage1.Add(
new
("WSL Windows USERDNSDOMAIN", CheckWslWindowsUserDnsDomainAsync));
193
stage1.Add(
new
("WSL Visual Studio Microsoft tenant", CheckWslVisualStudioMicrosoftTenantAsync));
199
stage3.Add(
new
("WSL Windows workplace join", CheckWslWindowsWorkplaceJoinAsync));
200
stage3.Add(
new
("WSL Windows gh.exe GitHub org membership", CheckWslWindowsGhCliAsync));
Aspire.Cli.Tests (11)
Telemetry\InternalMicrosoftDetectorTests.cs (11)
40
new
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", _ =>
138
new
InternalMicrosoftProbe
("positive", async _ =>
143
new
InternalMicrosoftProbe
("slow", async cancellationToken =>
181
new
InternalMicrosoftProbe
("positive", async _ =>
186
new
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)
55
private readonly IReadOnlyList<IReadOnlyList<
InternalMicrosoftProbe
>> _probeStages;
76
IReadOnlyList<IReadOnlyList<
InternalMicrosoftProbe
>>? probeStages,
124
private IReadOnlyList<IReadOnlyList<
InternalMicrosoftProbe
>> CreateDefaultProbeStages()
136
var stage1 = new List<
InternalMicrosoftProbe
>();
145
var stage2 = new List<
InternalMicrosoftProbe
>
153
var stage3 = new List<
InternalMicrosoftProbe
>
227
private async Task<InternalMicrosoftDetectionResult?> RunProbeStageAsync(IReadOnlyList<
InternalMicrosoftProbe
> probes, CancellationToken cancellationToken)
250
private Task<InternalMicrosoftDetectionResult?> RunProbeAsync(
InternalMicrosoftProbe
probe, CancellationToken cancellationToken)
Aspire.Cli.Tests (1)
Telemetry\InternalMicrosoftDetectorTests.cs (1)
565
IReadOnlyList<IReadOnlyList<
InternalMicrosoftProbe
>> probeStages,