8 instantiations of InternalMicrosoftDetectionResult
aspire (6)
Telemetry\AspireCliTelemetry.cs (2)
403
return new
InternalMicrosoftDetectionResult
(
420
return new
InternalMicrosoftDetectionResult
(
Telemetry\InternalMicrosoftDetector.cs (4)
119
return new
InternalMicrosoftDetectionResult
(
151
return new
InternalMicrosoftDetectionResult
(
272
return new
InternalMicrosoftDetectionResult
(
356
? 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: [])
Aspire.Cli.Tests (2)
Telemetry\TelemetryFixture.cs (1)
181
return Task.FromResult(new
InternalMicrosoftDetectionResult
(
Telemetry\TestTelemetryHelper.cs (1)
78
=> Task.FromResult(new
InternalMicrosoftDetectionResult
(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null));
38 references to InternalMicrosoftDetectionResult
aspire (12)
Telemetry\AspireCliTelemetry.cs (6)
286
var internalMicrosoftResultSource = new TaskCompletionSource<
InternalMicrosoftDetectionResult
?>(TaskCreationOptions.RunContinuationsAsynchronously);
289
InternalMicrosoftDetectionResult
? internalMicrosoftResult = null;
298
Task<
InternalMicrosoftDetectionResult
>? internalMicrosoftTask = null;
389
internal async Task<
InternalMicrosoftDetectionResult
> GetInternalMicrosoftResultAsync(CancellationTokenSource? timeoutSource, TimeProvider timeProvider)
432
private async Task EmitInternalMicrosoftDetectorDiagnosticsAsync(Task<
InternalMicrosoftDetectionResult
?> resultTask)
440
var
result = await resultTask.ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (6)
26
Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default);
110
public async Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
130
var
result = await RunProbeStagesAsync(cached.CacheStatus, cancellationToken).ConfigureAwait(false);
240
private async Task<
InternalMicrosoftDetectionResult
> RunProbeStagesAsync(
547
private async Task TryWriteCacheAsync(
InternalMicrosoftDetectionResult
result, CancellationToken cancellationToken)
1911
private sealed record InternalMicrosoftProbeStageResult(
InternalMicrosoftDetectionResult
? Result, IReadOnlyList<InternalMicrosoftProbeDiagnostic> Diagnostics, bool TimedOut);
Aspire.Cli.Tests (26)
Telemetry\AspireCliTelemetryTests.cs (1)
569
var
result = await resultTask.WaitAsync(TimeSpan.FromSeconds(30));
Telemetry\InternalMicrosoftDetectorTests.cs (21)
71
var
result = await detector.IsInternalMicrosoftMachineAsync();
124
var
result = await detector.IsInternalMicrosoftMachineAsync();
151
var
result = await detector.IsInternalMicrosoftMachineAsync();
195
var
result = await detector.IsInternalMicrosoftMachineAsync();
239
var
result = await detector.IsInternalMicrosoftMachineAsync();
272
var
result = await detectionTask;
317
var
result = await detector.IsInternalMicrosoftMachineAsync();
337
var
result = await detector.IsInternalMicrosoftMachineAsync();
361
var
result = await detector.IsInternalMicrosoftMachineAsync();
379
var
result = await detector.IsInternalMicrosoftMachineAsync();
409
var
result = await detector.IsInternalMicrosoftMachineAsync();
430
var
result = await detector.IsInternalMicrosoftMachineAsync();
453
var
result = await detector.IsInternalMicrosoftMachineAsync();
477
var
result = await detector.IsInternalMicrosoftMachineAsync();
512
var
result = await detector.IsInternalMicrosoftMachineAsync();
532
var
ciResult = await ciDetector.IsInternalMicrosoftMachineAsync();
549
var
localResult = await localDetector.IsInternalMicrosoftMachineAsync();
577
var
result = await detector.IsInternalMicrosoftMachineAsync();
955
var
result = await fullDetector.IsInternalMicrosoftMachineAsync();
1031
var
result = await detector.IsInternalMicrosoftMachineAsync();
1194
var
result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TelemetryFixture.cs (3)
166
public Func<CancellationToken, Task<
InternalMicrosoftDetectionResult
>>? DetectionCallback { get; set; }
169
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
174
return Task.FromException<
InternalMicrosoftDetectionResult
>(ExceptionToThrow);
Telemetry\TestTelemetryHelper.cs (1)
77
public Task<
InternalMicrosoftDetectionResult
> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)