This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AsyncObjectPool<T> where T : class | |
| { | |
| private readonly AsyncObjectPoolConfiguration<T> _configuration; | |
| private readonly ChannelReader<T> _poolReader; | |
| private readonly ChannelWriter<T> _poolWriter; | |
| private readonly SemaphoreSlim _resizingLock = new(1, 1); | |
| private int _currentSize; | |
| public AsyncObjectPool(AsyncObjectPoolConfiguration<T> configuration) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $highlighted-states: ( | |
| "success": ( | |
| "background": #c8e6c9, | |
| "text": #224a23 | |
| ), | |
| "info": ( | |
| "background": #b3e5fc, | |
| "text": #044868 | |
| ), | |
| "warn": ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NLogConfiguration | |
| { | |
| public static LoggingConfiguration CreateDefault() | |
| { | |
| Layout beautifulLayout = "[${time} ${level:padding=5}] (${logger:shortName=true}) ${message}"; | |
| var config = new LoggingConfiguration(); | |
| AddConsoleTarget(config, beautifulLayout); | |
| foreach (var target in config.AllTargets) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| It's certainly *one* way of writing integration tests. |