LIC-08Offline activation

What this test proves

Air-gapped sites must be able to license without any network on the target machine. Everything runs automatically except the portal step.

How it is tested

  1. The test creates the request with DicomKitLicense.CreateOfflineActivationRequest(key) and saves it (no network)
  2. A person uploads the request file in the customer portal (Offline activation) and saves the response file next to it
  3. On the next run the test imports the response with DicomKitLicense.SetFromFile in a new process whose license server URL points at a local socket
  4. Pass if the state is ActivePro or ActiveEnterprise, DicomFile.OpenAsync works and the socket received 0 connections

Expected result for each license type

  • Pro: Works
  • Enterprise: Works

Results

License Expected .NET 8.0 .NET 9.0 .NET 10.0 Result
Pro Works Pass
Worked
Pass
Worked
Pass
Worked
Pass
Enterprise Works Pass
Worked
Pass
Worked
Pass
Worked
Pass

Recorded evidence

Captured by the automated test during the run, per license and .NET version.

License.NETCapturedTime
Pro .NET 8.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActivePro Tier=Pro
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [pro] [net8.0] Offline activation(caseId: "LIC-08", license: "pro")"
2.1 s
Pro .NET 9.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActivePro Tier=Pro
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [pro] [net9.0] Offline activation(caseId: "LIC-08", license: "pro")"
2.1 s
Pro .NET 10.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActivePro Tier=Pro
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [pro] [net10.0] Offline activation(caseId: "LIC-08", license: "pro")"
2.2 s
Enterprise .NET 8.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActiveEnterprise Tier=Enterprise
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [enterprise] [net8.0] Offline activation(caseId: "LIC-08", license: "enterprise")"
2.1 s
Enterprise .NET 9.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActiveEnterprise Tier=Enterprise
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [enterprise] [net9.0] Offline activation(caseId: "LIC-08", license: "enterprise")"
2.1 s
Enterprise .NET 10.0
DicomKitLicense.SetFromFile(<response>) -> Status.State=ActiveEnterprise Tier=Enterprise
license server URL pointed at a local sink: 0 connection(s) during import, OpenAsync and 2 s wait
Test: DicomKit.ReleaseTests.ReleaseMatrix.Case "LIC-08 [enterprise] [net10.0] Offline activation(caseId: "LIC-08", license: "enterprise")"
2.2 s

Test run

Run
2ce13edc-f525-4ffb-ae07-648e5221cef9
Started (UTC)
2026-10-26 21:15:23, finished 21:21:01
Source commit
b804fb7
Environment
Microsoft Windows 11 Pro 10.0.26200 build 26200; Microsoft.AspNetCore.App 8.0.29, Microsoft.AspNetCore.App 9.0.18, Microsoft.AspNetCore.App 10.0.12, Microsoft.NETCore.App 3.1.32, Microsoft.NETCore.App 8.0.3, Microsoft.NETCore.App 8.0.29, Microsoft.NETCore.App 9.0.18, Microsoft.NETCore.App 10.0.12, Microsoft.WindowsDesktop.App 8.0.3, Microsoft.WindowsDesktop.App 8.0.29, Microsoft.WindowsDesktop.App 9.0.18, Microsoft.WindowsDesktop.App 10.0.12; Visual Studio Community 2026 18.10.3 (18.10.12224.181)
DicomKit
1.0.0 SHA-256 96ada39062c07bca37511abfb6baac0a44d914fb705bac01d77cb02146fdac0e
DicomKit.Cli
1.0.0 SHA-256 f8ffe70dc375cfe0d60881027e7cedb2502bc78ec5f5037f1d41b6c2481e1c84
DicomKit.Imaging
1.0.0 SHA-256 015b51ea833039d934ba153cae50d393fb77846430ca3fc3d65b4fb8cf4346ed
DicomKit.Web
1.0.0 SHA-256 2a2f4f7f02e1849929294062bee7dd8f3a24449428469c1fddb6982e77218a7b
DicomKit.Web.AspNetCore
1.0.0 SHA-256 daa1105881f1c0b60ca9c788d52d41445bd653a9d190c8862a2b2b1386d5e37c