6 instantiations of InternalMicrosoftDetectionResult
aspire (4)
Telemetry\InternalMicrosoftDetector.cs (4)
100return new InternalMicrosoftDetectionResult(cached.IsInternalMicrosoft, cached.Source, cached.Alias, cached.Domain); 104new InternalMicrosoftDetectionResult(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null); 120return new InternalMicrosoftDetectionResult(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null); 259? new InternalMicrosoftDetectionResult(IsInternalMicrosoft: true, Source: probe.Name, Alias: result.Alias, Domain: result.Domain)
Aspire.Cli.Tests (2)
Telemetry\TelemetryFixture.cs (1)
158return Task.FromResult(new InternalMicrosoftDetectionResult(IsInternalMicrosoft, Source, Alias, Domain));
Telemetry\TestTelemetryHelper.cs (1)
78=> Task.FromResult(new InternalMicrosoftDetectionResult(IsInternalMicrosoft: false, Source: null, Alias: null, Domain: null));
21 references to InternalMicrosoftDetectionResult
aspire (12)
Telemetry\AspireCliTelemetry.cs (2)
254Task<InternalMicrosoftDetectionResult>? internalMicrosoftTask = null; 264InternalMicrosoftDetectionResult? internalMicrosoftResult = null;
Telemetry\InternalMicrosoftDetector.cs (10)
25Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default); 93public async Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 103var result = await RunProbeStagesAsync(cancellationToken).ConfigureAwait(false) ?? 206private async Task<InternalMicrosoftDetectionResult?> RunProbeStagesAsync(CancellationToken cancellationToken) 217var result = await RunProbeStageAsync(stage, cancellationToken).ConfigureAwait(false); 227private async Task<InternalMicrosoftDetectionResult?> RunProbeStageAsync(IReadOnlyList<InternalMicrosoftProbe> probes, CancellationToken cancellationToken) 238var result = await completedTask.ConfigureAwait(false); 250private Task<InternalMicrosoftDetectionResult?> RunProbeAsync(InternalMicrosoftProbe probe, CancellationToken cancellationToken) 277private async Task DrainCancelledProbesAsync(IReadOnlyList<Task<InternalMicrosoftDetectionResult?>> probeTasks) 330private async Task TryWriteCacheAsync(InternalMicrosoftDetectionResult result, CancellationToken cancellationToken)
Aspire.Cli.Tests (9)
Telemetry\InternalMicrosoftDetectorTests.cs (6)
48var result = await detector.IsInternalMicrosoftMachineAsync(); 77var result = await detector.IsInternalMicrosoftMachineAsync(); 118var result = await detector.IsInternalMicrosoftMachineAsync(); 162var result = await detector.IsInternalMicrosoftMachineAsync(); 204var result = await detector.IsInternalMicrosoftMachineAsync(); 224var result = await detector.IsInternalMicrosoftMachineAsync();
Telemetry\TelemetryFixture.cs (2)
150public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default) 155return Task.FromException<InternalMicrosoftDetectionResult>(ExceptionToThrow);
Telemetry\TestTelemetryHelper.cs (1)
77public Task<InternalMicrosoftDetectionResult> IsInternalMicrosoftMachineAsync(CancellationToken cancellationToken = default)