Skip to content

Perpetual licensing#1162

Merged
jbogard merged 11 commits intomainfrom
perpetual
Feb 24, 2026
Merged

Perpetual licensing#1162
jbogard merged 11 commits intomainfrom
perpetual

Conversation

@jbogard
Copy link
Collaborator

@jbogard jbogard commented Feb 24, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

jbogard and others added 3 commits February 24, 2026 10:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Feb 24, 2026

@jbogard I've opened a new pull request, #1163, to work on those changes. Once the pull request is ready, I'll request review from you.

jbogard and others added 5 commits February 24, 2026 10:04
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 9, 2026
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.

3 participants