Skip to content

Conversation

@ngallegos
Copy link
Contributor

@ngallegos ngallegos commented Nov 9, 2025

Fixes #5183

There are cases when the ThroughputCollector in the LicensingComponent will collect data from more than one source of the same type. These cases throw an exception when SingleOrDefault is called in the ThroughputDataExtensions.

Refactoring to account for more than one source of the same type fixes the problem.

@ngallegos ngallegos changed the title Allow multiple data source of same type for throughput processing Allow multiple data sources of the same type for throughput processing Nov 11, 2025
@ngallegos ngallegos marked this pull request as ready for review November 11, 2025 15:56
@ngallegos ngallegos merged commit 57f9c38 into master Nov 12, 2025
32 checks passed
@ngallegos ngallegos deleted the allow-multiple-data-source-of-same-type-for-throughput-processing branch November 12, 2025 20:25
ngallegos added a commit that referenced this pull request Nov 12, 2025
#5155)

* Prevent throughput report from breaking if there is more than one source of the same type

* Add tests

* Fixed the expected value in the new test
ngallegos added a commit that referenced this pull request Nov 14, 2025
#5155) (#5184)

* Prevent throughput report from breaking if there is more than one source of the same type

* Add tests

* Fixed the expected value in the new test
@bartekwasielak bartekwasielak added this to the 6.8.0 milestone Dec 3, 2025
@bartekwasielak bartekwasielak modified the milestones: 6.8.0, 6.7.6 Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generating a usage report throws exception System.InvalidOperationException: Sequence contains more than one matching element

5 participants