NServiceBus.ConfigureLicenseExtensions.License C# (CSharp) Method

License() public static method

Allows user to specify the license string.
public static License ( this config, string licenseText ) : void
config this The instance to apply the settings to.
licenseText string The license text.
return void
        public static void License(this EndpointConfiguration config, string licenseText)
        {
            Guard.AgainstNullAndEmpty(nameof(licenseText), licenseText);
            Guard.AgainstNull(nameof(config), config);
            Logger.Info("Using license supplied via fluent API.");
            config.Settings.Set(LicenseReminder.LicenseTextSettingsKey, licenseText);
        }
ConfigureLicenseExtensions