Closed ramonsmits closed 1 month ago
It feels like if you're specifically using endpointConfiguration.LicensePath("PathToLicense")
then you intend to provide a path to a license file. If you do not have a path, then do not make the API call.
If a path is provided but it is invalid (doesn't exist) or the license found at the path is invalid or expired, then the code works as expected.
The documentation states:
No technical limitations are enforced at runtime when either no license is found or a license has expired.
However, this API is an explicit call. It is expected that some data to process is present.
I'm not satisfied with these changes. Too big diff for what we want.
Alternative is to just add validation in the extension methods and use
LogManager.GetLogger<LicenseManager>().Error("LicensePath argument is invalid and will be ignored")
Problem with that is that although no ArgumentException is raised the behavior will be different as now we will scan a bunch of default locations for the presence of a license file.
Do not validate licenseFile and licenseText values to prevent startup issues due to invalid values
Resolves:
Source: https://docs.particular.net/nservicebus/licensing/#throughput-limitations