8 instantiations of InternalMicrosoftDetectionResult
aspire (6)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (4)
123
return new
InternalMicrosoftDetectionResult
(
155
return new
InternalMicrosoftDetectionResult
(
276
return new
InternalMicrosoftDetectionResult
(
360
? new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: true, Source: result.Source, Alias: result.Result.Alias, Domain: result.Result.Domain, Outcome: InternalMicrosoftDetectorOutcome.Detected, CacheStatus: InternalMicrosoftDetectorCacheStatus.Miss, Duration: TimeSpan.Zero, ProbeDiagnostics: [])
Telemetry\AspireCliTelemetry.cs (2)
315
return new
InternalMicrosoftDetectionResult
(
332
return new
InternalMicrosoftDetectionResult
(
Aspire.Cli.Tests (2)
Telemetry\TestTelemetryHelper.cs (1)
79
=> Task.FromResult(new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null));
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
49
return Task.FromResult(new
InternalMicrosoftDetectionResult
(
39 references to InternalMicrosoftDetectionResult
aspire (13)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (6)
24
Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default);
114
public async Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
134
var
result = await RunProbeStagesAsync(cached.CacheStatus, cancellationToken).ConfigureAwait(false);
244
private async Task<
InternalMicrosoftDetectionResult
> RunProbeStagesAsync(
551
private async Task TryWriteCacheAsync(
InternalMicrosoftDetectionResult
result, CancellationToken cancellationToken)
1929
private sealed record InternalMicrosoftProbeStageResult(
InternalMicrosoftDetectionResult
? Result, IReadOnlyList<InternalMicrosoftProbeDiagnostic> Diagnostics, bool TimedOut);
src\Shared\Telemetry\TelemetryMetadata.cs (1)
61
InternalMicrosoftDetectionResult
? internalMicrosoftResult, string productPrefix)
Telemetry\AspireCliTelemetry.cs (6)
227
var internalMicrosoftResultSource = new TaskCompletionSource<
InternalMicrosoftDetectionResult
?>(TaskCreationOptions.RunContinuationsAsynchronously);
230
InternalMicrosoftDetectionResult
? internalMicrosoftResult = null;
236
Task<
InternalMicrosoftDetectionResult
>? internalMicrosoftTask = null;
301
internal async Task<
InternalMicrosoftDetectionResult
> GetInternalMicrosoftResultAsync(CancellationTokenSource? timeoutSource, TimeProvider timeProvider)
344
private async Task EmitInternalMicrosoftDetectorDiagnosticsAsync(Task<
InternalMicrosoftDetectionResult
?> resultTask)
352
var
result = await resultTask.ConfigureAwait(false);
Aspire.Cli.Tests (26)
Telemetry\AspireCliTelemetryTests.cs (1)
646
var
result = await resultTask.WaitAsync(TimeSpan.FromSeconds(30));
Telemetry\InternalMicrosoftDetectorTests.cs (21)
70
var
result = await detector.IsInternalMicrosoftMachineAsync();
123
var
result = await detector.IsInternalMicrosoftMachineAsync();
150
var
result = await detector.IsInternalMicrosoftMachineAsync();
194
var
result = await detector.IsInternalMicrosoftMachineAsync();
238
var
result = await detector.IsInternalMicrosoftMachineAsync();
271
var
result = await detectionTask;
316
var
result = await detector.IsInternalMicrosoftMachineAsync();
336
var
result = await detector.IsInternalMicrosoftMachineAsync();
360
var
result = await detector.IsInternalMicrosoftMachineAsync();
378
var
result = await detector.IsInternalMicrosoftMachineAsync();
408
var
result = await detector.IsInternalMicrosoftMachineAsync();
429
var
result = await detector.IsInternalMicrosoftMachineAsync();
452
var
result = await detector.IsInternalMicrosoftMachineAsync();
476
var
result = await detector.IsInternalMicrosoftMachineAsync();
511
var
result = await detector.IsInternalMicrosoftMachineAsync();
531
var
ciResult = await ciDetector.IsInternalMicrosoftMachineAsync();
548
var
localResult = await localDetector.IsInternalMicrosoftMachineAsync();
576
var
result = await detector.IsInternalMicrosoftMachineAsync();
1005
var
result = await fullDetector.IsInternalMicrosoftMachineAsync();
1081
var
result = await detector.IsInternalMicrosoftMachineAsync();
1244
var
result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TestTelemetryHelper.cs (1)
78
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (3)
34
public Func<CancellationToken, Task<
InternalMicrosoftDetectionResult
>>? DetectionCallback { get; set; }
37
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
42
return Task.FromException<
InternalMicrosoftDetectionResult
>(ExceptionToThrow);