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