8 instantiations of InternalMicrosoftDetectionResult
aspire (6)
Telemetry\AspireCliTelemetry.cs (2)
403return new InternalMicrosoftDetectionResult( 420return new InternalMicrosoftDetectionResult(
Telemetry\InternalMicrosoftDetector.cs (4)
119return new InternalMicrosoftDetectionResult( 151return new InternalMicrosoftDetectionResult( 272return 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)
181return 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)
286var internalMicrosoftResultSource = new TaskCompletionSource<InternalMicrosoftDetectionResult?>(TaskCreationOptions.RunContinuationsAsynchronously); 289InternalMicrosoftDetectionResult? internalMicrosoftResult = null; 298Task<InternalMicrosoftDetectionResult>? internalMicrosoftTask = null; 389internal async Task<InternalMicrosoftDetectionResult> GetInternalMicrosoftResultAsync(CancellationTokenSource? timeoutSource, TimeProvider timeProvider) 432private async Task EmitInternalMicrosoftDetectorDiagnosticsAsync(Task<InternalMicrosoftDetectionResult?> resultTask) 440var result = await resultTask.ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (6)
26Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default); 110public async Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 130var result = await RunProbeStagesAsync(cached.CacheStatus, cancellationToken).ConfigureAwait(false); 240private async Task<InternalMicrosoftDetectionResult> RunProbeStagesAsync( 547private async Task TryWriteCacheAsync(InternalMicrosoftDetectionResult result, CancellationToken cancellationToken) 1911private sealed record InternalMicrosoftProbeStageResult(InternalMicrosoftDetectionResult? Result, IReadOnlyList<InternalMicrosoftProbeDiagnostic> Diagnostics, bool TimedOut);
Aspire.Cli.Tests (26)
Telemetry\AspireCliTelemetryTests.cs (1)
569var result = await resultTask.WaitAsync(TimeSpan.FromSeconds(30));
Telemetry\InternalMicrosoftDetectorTests.cs (21)
70var result = await detector.IsInternalMicrosoftMachineAsync(); 123var result = await detector.IsInternalMicrosoftMachineAsync(); 150var result = await detector.IsInternalMicrosoftMachineAsync(); 194var result = await detector.IsInternalMicrosoftMachineAsync(); 238var result = await detector.IsInternalMicrosoftMachineAsync(); 271var result = await detectionTask; 316var result = await detector.IsInternalMicrosoftMachineAsync(); 336var result = await detector.IsInternalMicrosoftMachineAsync(); 360var result = await detector.IsInternalMicrosoftMachineAsync(); 378var result = await detector.IsInternalMicrosoftMachineAsync(); 408var result = await detector.IsInternalMicrosoftMachineAsync(); 429var result = await detector.IsInternalMicrosoftMachineAsync(); 452var result = await detector.IsInternalMicrosoftMachineAsync(); 476var result = await detector.IsInternalMicrosoftMachineAsync(); 511var result = await detector.IsInternalMicrosoftMachineAsync(); 531var ciResult = await ciDetector.IsInternalMicrosoftMachineAsync(); 548var localResult = await localDetector.IsInternalMicrosoftMachineAsync(); 576var result = await detector.IsInternalMicrosoftMachineAsync(); 954var result = await fullDetector.IsInternalMicrosoftMachineAsync(); 1030var result = await detector.IsInternalMicrosoftMachineAsync(); 1193var result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TelemetryFixture.cs (3)
166public Func<CancellationToken, Task<InternalMicrosoftDetectionResult>>? DetectionCallback { get; set; } 169public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 174return Task.FromException<InternalMicrosoftDetectionResult>(ExceptionToThrow);
Telemetry\TestTelemetryHelper.cs (1)
77public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)