6 instantiations of InternalMicrosoftDetectionResult
aspire (4)
Telemetry\InternalMicrosoftDetector.cs (4)
100
return new
InternalMicrosoftDetectionResult
(cached.IsInternalMicrosoft, cached.Source, cached.Alias, cached.Domain);
104
new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null);
120
return new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null);
259
? new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: true, Source: probe.Name, Alias: result.Alias, Domain: result.Domain)
Aspire.Cli.Tests (2)
Telemetry\TelemetryFixture.cs (1)
158
return Task.FromResult(new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft, Source, Alias, Domain));
Telemetry\TestTelemetryHelper.cs (1)
78
=> Task.FromResult(new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null));
21 references to InternalMicrosoftDetectionResult
aspire (12)
Telemetry\AspireCliTelemetry.cs (2)
254
Task<
InternalMicrosoftDetectionResult
>? internalMicrosoftTask = null;
264
InternalMicrosoftDetectionResult
? internalMicrosoftResult = null;
Telemetry\InternalMicrosoftDetector.cs (10)
25
Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default);
93
public async Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
103
var
result = await RunProbeStagesAsync(cancellationToken).ConfigureAwait(false) ??
206
private async Task<
InternalMicrosoftDetectionResult
?> RunProbeStagesAsync(CancellationToken cancellationToken)
217
var
result = await RunProbeStageAsync(stage, cancellationToken).ConfigureAwait(false);
227
private async Task<
InternalMicrosoftDetectionResult
?> RunProbeStageAsync(IReadOnlyList<InternalMicrosoftProbe> probes, CancellationToken cancellationToken)
238
var
result = await completedTask.ConfigureAwait(false);
250
private Task<
InternalMicrosoftDetectionResult
?> RunProbeAsync(InternalMicrosoftProbe probe, CancellationToken cancellationToken)
277
private async Task DrainCancelledProbesAsync(IReadOnlyList<Task<
InternalMicrosoftDetectionResult
?>> probeTasks)
330
private async Task TryWriteCacheAsync(
InternalMicrosoftDetectionResult
result, CancellationToken cancellationToken)
Aspire.Cli.Tests (9)
Telemetry\InternalMicrosoftDetectorTests.cs (6)
48
var
result = await detector.IsInternalMicrosoftMachineAsync();
77
var
result = await detector.IsInternalMicrosoftMachineAsync();
118
var
result = await detector.IsInternalMicrosoftMachineAsync();
162
var
result = await detector.IsInternalMicrosoftMachineAsync();
204
var
result = await detector.IsInternalMicrosoftMachineAsync();
224
var
result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TelemetryFixture.cs (2)
150
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
155
return Task.FromException<
InternalMicrosoftDetectionResult
>(ExceptionToThrow);
Telemetry\TestTelemetryHelper.cs (1)
77
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)