Base:
method
Get
Microsoft.Extensions.ObjectPool.ObjectPool<T>.Get()
1 override of Get
Microsoft.Extensions.ObjectPool (1)
DisposableObjectPool.cs (1)
23public override T Get()
29 references to Get
Microsoft.Extensions.ObjectPool (1)
DisposableObjectPool.cs (1)
30return base.Get();
Microsoft.Extensions.ObjectPool.Microbenchmark (4)
DrainRefillMultiTheaded.cs (1)
78store[i] = _pool.Get();
DrainRefillSingleThreaded.cs (1)
36_store[i] = _pool.Get();
GetReturnMultiThreaded.cs (1)
66var o = _pool.Get();
GetReturnSingleThreaded.cs (1)
27_pool.Return(_pool.Get());
Microsoft.Extensions.ObjectPool.Tests (24)
DefaultObjectPoolTest.cs (9)
17var obj1 = pool.Get(); 21var obj2 = pool.Get(); 33var list1 = pool.Get(); 37var list2 = pool.Get(); 50var list = pool.Get(); 61var list1 = pool.Get(); 66var list2 = pool.Get(); 81Assert.NotSame(r, p.Get()); 86Assert.Same(r, p.Get());
DisposableObjectPoolTest.cs (13)
18var obj1 = pool.Get(); 22var obj2 = pool.Get(); 34var list1 = pool.Get(); 38var list2 = pool.Get(); 49var list1 = pool.Get(); 54var list2 = pool.Get(); 65var obj = pool.Get(); 80var obj1 = pool.Get(); 81var obj2 = pool.Get(); 98var obj1 = pool.Get(); 99var obj2 = pool.Get(); 107Assert.Throws<ObjectDisposedException>(() => pool.Get()); 115var obj = pool.Get();
ThreadingTest.cs (2)
60var obj = _pool.Get(); 67var obj2 = _pool.Get();