aspnetcore/src/Middleware/ConcurrencyLimiter/test
Martin Costello acabbbc61b
Remove QueuePolicy locks (#23187)
* Use field rather than property

Operate on a field directly, rather than through a property.

* Make field readonly

Make field read-only as its value is never changed.

* Remove lock

Use Interlocked.Decrement() instead of taking a lock.

* Remove lock for increment

This removes the need for the lock in the success case at the cost of an extra  Interlocked.Decrement() call for the failed case.

* Fix typos

Change "availible" to "available".

* Add unit test for full queue

Add a unit test that validates request is not queued if the queue is already full.
2020-06-30 05:11:58 +00:00
..
PolicyTests Remove QueuePolicy locks (#23187) 2020-06-30 05:11:58 +00:00
ConcurrencyLimiterEventSourceTests.cs Dylan/resettable tcs (#12453) 2019-07-25 16:38:13 -07:00
Microsoft.AspNetCore.ConcurrencyLimiter.Tests.csproj [master] Update dependencies from 3 repositories (#12977) 2019-08-28 00:21:22 +00:00
MiddlewareTests.cs Dylan/resettable tcs (#12453) 2019-07-25 16:38:13 -07:00
TaskExtensions.cs ConcurrencyLimiter polishing and cleanup (#12127) 2019-07-13 08:08:21 -07:00
TestUtils.cs Dylan/resettable tcs (#12453) 2019-07-25 16:38:13 -07:00