14 references to Admit
Microsoft.Extensions.Telemetry (2)
Sampling\BottomKLogBuffer.cs (1)
87=> Admit(category, LogLevel.Information, eventId);
Sampling\BottomKLoggingSampler.cs (1)
28=> _buffer.Admit(logEntry.Category, logEntry.LogLevel, logEntry.EventId);
Microsoft.Extensions.Telemetry.Tests (12)
Sampling\BottomKLogBufferTests.cs (12)
333Assert.True(buffer.Admit("category", LogLevel.Information, new EventId(1))); 337Assert.True(buffer.Admit("category", LogLevel.Information, new EventId(2))); 369Assert.True(buffer.Admit("category", LogLevel.Information, eventRuleEventId)); 378Assert.True(buffer.Admit("sampled.exact", LogLevel.Information, sampledEventId)); 399Assert.True(buffer.Admit( 430_ = buffer.Admit("category", LogLevel.Information, new EventId(2)); 451bool result = buffer.Admit("category", LogLevel.Information, new EventId(1)); 464_ = buffer.Admit("category", LogLevel.Information, new EventId(2)); 563buffer.Admit("trigger-category", LogLevel.Information, new EventId(3))); 675Assert.True(buffer.Admit(category, logLevel, eventId)); 687Assert.True(buffer.Admit(category, logLevel, eventId)); 709Assert.True(buffer.Admit(category, logLevel, eventId));