Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements perpetual licensing for MediatR, allowing builds created before a license expiration date to continue working indefinitely even after the license expires. The implementation embeds the build date (derived from git commit date) into the assembly metadata and validates it against the license expiration during runtime. The PR also includes unrelated SBOM (Software Bill of Materials) generation steps in the CI/CD workflows.
Changes:
- Added perpetual license support with build date tracking
- Embedded build date metadata via MSBuild target using git commit timestamp
- Added SBOM generation to CI and release workflows
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/MediatR/Licensing/License.cs | Added IsPerpetual property to parse and store perpetual claim from license |
| src/MediatR/Licensing/LicenseValidator.cs | Implemented perpetual license validation logic comparing build date against expiration |
| src/MediatR/Licensing/BuildInfo.cs | New class to extract build date from assembly metadata |
| src/MediatR/MediatR.csproj | Added MSBuild target to embed git commit date as build metadata |
| test/MediatR.Tests/Licensing/LicenseValidatorTests.cs | Added three test cases covering perpetual license scenarios |
| .github/workflows/ci.yml | Added SBOM generation step (unrelated to perpetual licensing) |
| .github/workflows/release.yml | Added SBOM generation step (unrelated to perpetual licensing) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Make the formatting xplat Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…error in test Co-authored-by: jbogard <104498+jbogard@users.noreply.github.com>
Log warning when perpetual license cannot be applied due to missing build date
This was referenced Mar 3, 2026
This was referenced Mar 9, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.