From ae4ffa75be378497d8db210c6864cde40f7c75f9 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 21 Feb 2013 01:02:10 -0500 Subject: isolated weather and moved drawing classes up to the controller project --- .../Plugins/PluginSecurityManager.cs | 39 +++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller/Plugins/PluginSecurityManager.cs') diff --git a/MediaBrowser.Controller/Plugins/PluginSecurityManager.cs b/MediaBrowser.Controller/Plugins/PluginSecurityManager.cs index 341e3582b..5dbd6cbc6 100644 --- a/MediaBrowser.Controller/Plugins/PluginSecurityManager.cs +++ b/MediaBrowser.Controller/Plugins/PluginSecurityManager.cs @@ -6,12 +6,28 @@ using System.Threading.Tasks; namespace MediaBrowser.Controller.Plugins { + /// + /// Class PluginSecurityManager + /// public class PluginSecurityManager : BaseManager { + /// + /// The _is MB supporter + /// private bool? _isMBSupporter; + /// + /// The _is MB supporter initialized + /// private bool _isMBSupporterInitialized; + /// + /// The _is MB supporter sync lock + /// private object _isMBSupporterSyncLock = new object(); - + + /// + /// Gets a value indicating whether this instance is MB supporter. + /// + /// true if this instance is MB supporter; otherwise, false. public bool IsMBSupporter { get @@ -21,15 +37,29 @@ namespace MediaBrowser.Controller.Plugins } } + /// + /// Initializes a new instance of the class. + /// + /// The kernel. public PluginSecurityManager(Kernel kernel) : base(kernel) { } + /// + /// Gets the registration status. + /// + /// The feature. + /// The MB2 equivalent. + /// Task{MBRegistrationRecord}. public async Task GetRegistrationStatus(string feature, string mb2Equivalent = null) { return await MBRegistration.GetRegistrationStatus(feature, mb2Equivalent).ConfigureAwait(false); } + /// + /// Gets or sets the supporter key. + /// + /// The supporter key. public string SupporterKey { get { return MBRegistration.SupporterKey; } @@ -46,6 +76,10 @@ namespace MediaBrowser.Controller.Plugins } } + /// + /// Gets or sets the legacy key. + /// + /// The legacy key. public string LegacyKey { get { return MBRegistration.LegacyKey; } @@ -56,6 +90,9 @@ namespace MediaBrowser.Controller.Plugins } } + /// + /// Resets the supporter info. + /// private void ResetSupporterInfo() { _isMBSupporter = null; -- cgit v1.2.3