16 references to AdmissionKind
Microsoft.Extensions.Telemetry (15)
Sampling\Admission.cs (10)
9/// The result of an admission attempt. For an <see cref="AdmissionKind.Admit"/> outcome it also 15private Admission(AdmissionKind kind, double key) 22/// Gets a shared <see cref="AdmissionKind.Skip"/> admission. 24public static Admission Skip { get; } = new(AdmissionKind.Skip, double.NaN); 27/// Gets a shared <see cref="AdmissionKind.Preserve"/> admission. 29public static Admission Preserve { get; } = new(AdmissionKind.Preserve, double.NaN); 34public AdmissionKind Kind { get; } 38/// <see cref="Kind"/> is <see cref="AdmissionKind.Admit"/>; otherwise <see cref="double.NaN"/>. 53/// Creates an <see cref="AdmissionKind.Admit"/> admission carrying its EXP rank. 57public static Admission Admit(double key) => new(AdmissionKind.Admit, key);
Sampling\BottomKLogBuffer.cs (3)
77return pending.Bypass || pending.Admission.Admission.Kind != AdmissionKind.Skip; 113if (pending.Admission.Admission.Kind == AdmissionKind.Skip) 349if (pending.Generation != _generation || pending.Admission.Kind == AdmissionKind.Skip)
Sampling\BottomKSampler.cs (2)
182case AdmissionKind.Admit: 186case AdmissionKind.Preserve:
Microsoft.Extensions.Telemetry.Tests (1)
Sampling\BottomKSamplerTests.cs (1)
291if (admission.Kind != AdmissionKind.Skip)