Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzchak Yitzchaki committed Mar 25, 2012
1 parent 1407574 commit 5bcb692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Raven.Database/Commercial/ValidateLicense.cs
Expand Up @@ -55,8 +55,8 @@ public void Execute(DocumentDatabase database)
DisableFloatingLicenses = true, DisableFloatingLicenses = true,
SubscriptionEndpoint = "http://uberprof.com/Subscriptions.svc" SubscriptionEndpoint = "http://uberprof.com/Subscriptions.svc"
}; };
licenseValidator.LicenseInvalidated+=LicenseValidatorOnLicenseInvalidated; licenseValidator.LicenseInvalidated += OnLicenseInvalidated;
licenseValidator.MultipleLicensesWereDiscovered += LicenseValidatorOnMultipleLicensesWereDiscovered; licenseValidator.MultipleLicensesWereDiscovered += OnMultipleLicensesWereDiscovered;


if (string.IsNullOrEmpty(licenseText)) if (string.IsNullOrEmpty(licenseText))
{ {
Expand Down Expand Up @@ -125,7 +125,7 @@ private static string GetLicensePath(DocumentDatabase database)
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "license.xml"); return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "license.xml");
} }


private void LicenseValidatorOnMultipleLicensesWereDiscovered(object sender, DiscoveryHost.ClientDiscoveredEventArgs clientDiscoveredEventArgs) private void OnMultipleLicensesWereDiscovered(object sender, DiscoveryHost.ClientDiscoveredEventArgs clientDiscoveredEventArgs)
{ {
logger.Error("A duplicate license was found at {0} for user {1}. User Id: {2}. Both licenses were disabled!", logger.Error("A duplicate license was found at {0} for user {1}. User Id: {2}. Both licenses were disabled!",
clientDiscoveredEventArgs.MachineName, clientDiscoveredEventArgs.MachineName,
Expand All @@ -143,7 +143,7 @@ private void LicenseValidatorOnMultipleLicensesWereDiscovered(object sender, Dis
}; };
} }


private void LicenseValidatorOnLicenseInvalidated(InvalidationType invalidationType) private void OnLicenseInvalidated(InvalidationType invalidationType)
{ {
logger.Error("The license have expired and can no longer be used"); logger.Error("The license have expired and can no longer be used");
CurrentLicense = new LicensingStatus CurrentLicense = new LicensingStatus
Expand Down

0 comments on commit 5bcb692

Please sign in to comment.