Interface ISecurityManager
Assembly: MediaBrowser.Common.dll
public interface ISecurityManager
Properties
Gets or sets the supporter key.
Declaration
string SupporterKey { get; }
Property Value
Type |
Description |
System.String |
The supporter key.
|
Methods
Gets the registration status. Overload to support existing plug-ins.
Declaration
Task<MBRegistrationRecord> GetRegistrationStatus(string feature, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
feature |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
Task<bool> IsFeatureAllowed(string feature, bool isIndependantFeature, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
feature |
|
System.Boolean |
isIndependantFeature |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Declaration
Task<bool> IsFeatureAllowed(string feature, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.String |
feature |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Gets a value indicating whether this instance is MB supporter.
Declaration
Task<bool> IsSupporter(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
true if this instance is MB supporter; otherwise, false .
|
Register and app store sale with our back-end
Declaration
Task RegisterAppStoreSale(string parameters, bool updatePremiereKey)
Parameters
Type |
Name |
Description |
System.String |
parameters |
Json parameters to pass to admin server
|
System.Boolean |
updatePremiereKey |
if set to true [update premiere key].
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task UpdateSupporterKey(string newValue)
Parameters
Type |
Name |
Description |
System.String |
newValue |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods