Use a private field for inFlight counting

Description

Instead of using ConcurrentDictionary.Count, we should use we should introduce a counter and Interlocked increment and decrement it and, for the inflight, volatile read it.

Environment

None

Pull Requests

None

Assignee

Jorge Bay Gondra

Reporter

Jorge Bay Gondra

Labels

PM Priority

None

Fix versions

External issue ID

None

Doc Impact

None

Reviewer

None

Epic Link

None

Sprint

None

Size

None

Priority

Major
Configure