7 instantiations of InternalMicrosoftDetectionResult
Aspire.Dashboard (4)
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: [])
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
49return Task.FromResult(new InternalMicrosoftDetectionResult(
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
49return Task.FromResult(new InternalMicrosoftDetectionResult(
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TestTelemetryMetadataProviders.cs (1)
49return Task.FromResult(new InternalMicrosoftDetectionResult(
17 references to InternalMicrosoftDetectionResult
Aspire.Dashboard (8)
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\DashboardTelemetryService.cs (1)
243var internalMicrosoftResult = await internalMicrosoftTask.ConfigureAwait(false);
Aspire.Dashboard.Components.Tests (3)
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);
Aspire.Dashboard.Playwright.Tests (3)
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);
Aspire.Dashboard.Tests (3)
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);