7 references to GenerateMessage
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (7)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (7)
32throw new InvalidOperationException(GenerateMessage("Can't unpin, pin count is zero", block));
37throw new InvalidOperationException(GenerateMessage("Disposing pinned block", block));
47throw new InvalidOperationException(GenerateMessage("Block is being disposed twice", block));
52throw new InvalidOperationException(GenerateMessage("Block is being returned to disposed pool", block));
57throw new InvalidOperationException(GenerateMessage("Block is backed by disposed slab", block));
62throw new InvalidOperationException(GenerateMessage($"Memory pool with active blocks is being disposed, {returned} of {total} returned", blocks));
67throw new InvalidOperationException(GenerateMessage($"Blocks were not returned in time, {returned} of {total} returned ", blocks));