4 overrides of TryLockOne
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\EventRaisingResourceCounter.cs (1)
27public override bool TryLockOne()
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\ResourceCounter.cs (2)
18public override bool TryLockOne() => true; 39public override bool TryLockOne()
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\EventRaisingResourceCounter.cs (1)
27public override bool TryLockOne()
8 references to TryLockOne
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\EventRaisingResourceCounter.cs (1)
29var retVal = _wrapped.TryLockOne();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
271if (!ServiceContext.ConnectionManager.UpgradedConnectionCount.TryLockOne())
Middleware\ConnectionLimitMiddleware.cs (1)
34if (!_concurrentConnectionCounter.TryLockOne())
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
ResourceCounterTests.cs (4)
25Assert.True(counter.TryLockOne()); 26Assert.False(counter.TryLockOne()); 39Assert.True(counter.TryLockOne()); 44Assert.False(counter.TryLockOne());
src\Servers\Kestrel\shared\test\EventRaisingResourceCounter.cs (1)
29var retVal = _wrapped.TryLockOne();