8 instantiations of InternalMicrosoftDetectionResult
aspire (6)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (4)
123return new InternalMicrosoftDetectionResult( 155return new InternalMicrosoftDetectionResult( 276return 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)
315return new InternalMicrosoftDetectionResult( 332return 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)
49return Task.FromResult(new InternalMicrosoftDetectionResult(
39 references to InternalMicrosoftDetectionResult
aspire (13)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (6)
24Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default); 114public async Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 134var result = await RunProbeStagesAsync(cached.CacheStatus, cancellationToken).ConfigureAwait(false); 244private async Task<InternalMicrosoftDetectionResult> RunProbeStagesAsync( 551private async Task TryWriteCacheAsync(InternalMicrosoftDetectionResult result, CancellationToken cancellationToken) 1929private sealed record InternalMicrosoftProbeStageResult(InternalMicrosoftDetectionResult? Result, IReadOnlyList<InternalMicrosoftProbeDiagnostic> Diagnostics, bool TimedOut);
src\Shared\Telemetry\TelemetryMetadata.cs (1)
61InternalMicrosoftDetectionResult? internalMicrosoftResult, string productPrefix)
Telemetry\AspireCliTelemetry.cs (6)
227var internalMicrosoftResultSource = new TaskCompletionSource<InternalMicrosoftDetectionResult?>(TaskCreationOptions.RunContinuationsAsynchronously); 230InternalMicrosoftDetectionResult? internalMicrosoftResult = null; 236Task<InternalMicrosoftDetectionResult>? internalMicrosoftTask = null; 301internal async Task<InternalMicrosoftDetectionResult> GetInternalMicrosoftResultAsync(CancellationTokenSource? timeoutSource, TimeProvider timeProvider) 344private async Task EmitInternalMicrosoftDetectorDiagnosticsAsync(Task<InternalMicrosoftDetectionResult?> resultTask) 352var result = await resultTask.ConfigureAwait(false);
Aspire.Cli.Tests (26)
Telemetry\AspireCliTelemetryTests.cs (1)
646var 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(); 1005var result = await fullDetector.IsInternalMicrosoftMachineAsync(); 1081var result = await detector.IsInternalMicrosoftMachineAsync(); 1244var result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TestTelemetryHelper.cs (1)
78public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (3)
34public Func<CancellationToken, Task<InternalMicrosoftDetectionResult>>? DetectionCallback { get; set; } 37public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 42return Task.FromException<InternalMicrosoftDetectionResult>(ExceptionToThrow);