While creating integration tests I faced a race condition in GrpcMonitor when the channel retrieved from the static _monitorChannels was null although the key had already been set.
Replacing the complex implementation with custom locking by the standard pattern ConcurrentDictionary<K, Lazy> has resolved this.
While creating integration tests I faced a race condition in GrpcMonitor when the channel retrieved from the static _monitorChannels was null although the key had already been set. Replacing the complex implementation with custom locking by the standard pattern ConcurrentDictionary<K, Lazy> has resolved this.