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)
71var result = await detector.IsInternalMicrosoftMachineAsync(); 124var result = await detector.IsInternalMicrosoftMachineAsync(); 151var result = await detector.IsInternalMicrosoftMachineAsync(); 195var result = await detector.IsInternalMicrosoftMachineAsync(); 239var result = await detector.IsInternalMicrosoftMachineAsync(); 272var result = await detectionTask; 317var result = await detector.IsInternalMicrosoftMachineAsync(); 337var result = await detector.IsInternalMicrosoftMachineAsync(); 361var result = await detector.IsInternalMicrosoftMachineAsync(); 379var result = await detector.IsInternalMicrosoftMachineAsync(); 409var result = await detector.IsInternalMicrosoftMachineAsync(); 430var result = await detector.IsInternalMicrosoftMachineAsync(); 453var result = await detector.IsInternalMicrosoftMachineAsync(); 477var result = await detector.IsInternalMicrosoftMachineAsync(); 512var result = await detector.IsInternalMicrosoftMachineAsync(); 532var ciResult = await ciDetector.IsInternalMicrosoftMachineAsync(); 549var localResult = await localDetector.IsInternalMicrosoftMachineAsync(); 577var result = await detector.IsInternalMicrosoftMachineAsync(); 955var result = await fullDetector.IsInternalMicrosoftMachineAsync(); 1031var result = await detector.IsInternalMicrosoftMachineAsync(); 1194var 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)