Skip to content

Comments

Add new license management services#1637

Merged
josephdecock merged 22 commits intomainfrom
joe/licensing
Dec 11, 2024
Merged

Add new license management services#1637
josephdecock merged 22 commits intomainfrom
joe/licensing

Conversation

@josephdecock
Copy link
Member

No description provided.

@josephdecock josephdecock force-pushed the joe/licensing branch 2 times, most recently from 884c130 to 072bfdd Compare December 3, 2024 18:52
Some files in license v2 had an autogenerated apache license header, but they are not apache licensed.

Yo dawg, I heard you were changing the licensing code, so I changed the license of your license code...
Note that the license files we're checking in issued to the _test company and are already expired
@josephdecock josephdecock marked this pull request as ready for review December 4, 2024 23:06
- Make services private
- Add public LicenseSummary
- Show how to use LicenseSummary in main host
- Remove license usage hosted service
- Track used license features by minimum license level that supports them
@josephdecock josephdecock requested review from damianh and removed request for brockallen December 6, 2024 16:49
This is more consistent with the other usage tracking.
We check if the dictionary contains the key first, because it performs better given our
workload. Typically these sets will contain a small number of elements, and won't change
much over time (e.g., the first time we try to use DPoP, that gets added, and then all
subsequent requests with a proof don't need to do anything here). ConcurrentDictionary's
ContainsKey method is lock free, while TryAdd always acquires a lock, so in the (by far
more common) steady state, the ContainsKey check is much faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants