26 references to InternalMicrosoftProbeOutcome
aspire (11)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (11)
275var anyProbeFailed = diagnostics.Any(diagnostic => diagnostic.Outcome == InternalMicrosoftProbeOutcome.Failed); 330var deadlineTriggeredCancellation = timedOut && diagnostic.Outcome == InternalMicrosoftProbeOutcome.Cancelled; 332? diagnostic with { Outcome = InternalMicrosoftProbeOutcome.TimedOut } 339result.Diagnostic.Outcome == InternalMicrosoftProbeOutcome.TimedOut); 344diagnostics.Add(new InternalMicrosoftProbeDiagnostic(probe.Name, InternalMicrosoftProbeOutcome.TimedOut, _probeStageTimeout, HasAlias: false, HasDomain: false)); 377? InternalMicrosoftProbeOutcome.TimedOut 379? InternalMicrosoftProbeOutcome.Failed 381? InternalMicrosoftProbeOutcome.Detected 382: InternalMicrosoftProbeOutcome.NotDetected; 397new InternalMicrosoftProbeDiagnostic(probe.Name, InternalMicrosoftProbeOutcome.Cancelled, stopwatch.Elapsed, HasAlias: false, HasDomain: false), 413InternalMicrosoftProbeOutcome.Failed,
Aspire.Cli.Tests (15)
Telemetry\AspireCliTelemetryTests.cs (3)
737new InternalMicrosoftProbeDiagnostic("test source", InternalMicrosoftProbeOutcome.Detected, TimeSpan.FromMilliseconds(12), HasAlias: true, HasDomain: true) 756Assert.Contains(probeEvent.Tags, tag => tag.Key == TelemetryConstants.Tags.InternalMicrosoftProbeOutcome && (string?)tag.Value == InternalMicrosoftProbeOutcome.Detected); 768InternalMicrosoftProbeOutcome.Failed,
Telemetry\InternalMicrosoftDetectorTests.cs (12)
245Assert.Contains(result.ProbeDiagnostics, probe => probe.Source == "slow" && probe.Outcome == InternalMicrosoftProbeOutcome.TimedOut); 275Assert.Contains(result.ProbeDiagnostics, probe => probe.Source == "late positive" && probe.Outcome == InternalMicrosoftProbeOutcome.TimedOut); 343Assert.Equal(InternalMicrosoftProbeOutcome.Failed, failure.Outcome); 365Assert.Contains(result.ProbeDiagnostics, probe => probe.Source == "negative" && probe.Outcome == InternalMicrosoftProbeOutcome.NotDetected); 382Assert.Contains(result.ProbeDiagnostics, probe => probe.Source == "faulting" && probe.Outcome == InternalMicrosoftProbeOutcome.Failed); 433Assert.Contains(result.ProbeDiagnostics, diagnostic => diagnostic.Outcome == InternalMicrosoftProbeOutcome.NotDetected); 434Assert.Contains(result.ProbeDiagnostics, diagnostic => diagnostic.Outcome == InternalMicrosoftProbeOutcome.Failed); 456Assert.Contains(result.ProbeDiagnostics, probe => probe.Source == "slow" && probe.Outcome == InternalMicrosoftProbeOutcome.TimedOut); 481Assert.Equal(InternalMicrosoftProbeOutcome.TimedOut, diagnostic.Outcome); 1010Assert.Equal(InternalMicrosoftProbeOutcome.TimedOut, diagnostic.Outcome); 1064$"Platform SSO did not detect a managed Microsoft identity. Failure: {result.Failure?.Code ?? InternalMicrosoftProbeOutcome.NotDetected} at {result.Failure?.Stage ?? "<none>"}."); 1086Assert.Equal(InternalMicrosoftProbeOutcome.Failed, diagnostic.Outcome);