diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2014-01-25 16:11:09 -0500 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2014-01-25 16:11:09 -0500 |
| commit | b78cdae32100afd2d3b5062f69a6b59b6b25cf05 (patch) | |
| tree | 33c43a25de6c84a15b804e2f7420b35f01dc9e51 /MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs | |
| parent | d0485685de264fb0eb8cdbe16fce75eeee557581 (diff) | |
Add version and platform to stats and don't hit server on every reg check
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs b/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs index c5d5f28d6..77a7bf0f6 100644 --- a/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs +++ b/MediaBrowser.Common.Implementations/Security/MBLicenseFile.cs @@ -56,6 +56,16 @@ namespace MediaBrowser.Common.Implementations.Security } + public void RemoveRegCheck(string featureId) + { + using (var provider = new MD5CryptoServiceProvider()) + { + UpdateRecords.Remove(new Guid(provider.ComputeHash(Encoding.Unicode.GetBytes(featureId)))); + Save(); + } + + } + public DateTime LastChecked(string featureId) { using (var provider = new MD5CryptoServiceProvider()) |
