Add overload for existing plug-in support

pull/702/head
Eric Reed 11 years ago
parent 4abdc02aa1
commit 1f31c8dbfc

@ -90,6 +90,18 @@ namespace MediaBrowser.Common.Implementations.Security
await Task.WhenAll(tasks); await Task.WhenAll(tasks);
} }
/// <summary>
/// Gets the registration status.
/// This overload supports existing plug-ins.
/// </summary>
/// <param name="feature">The feature.</param>
/// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <returns>Task{MBRegistrationRecord}.</returns>
public async Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null)
{
return await MBRegistration.GetRegistrationStatus(_httpClient, _jsonSerializer, feature, mb2Equivalent).ConfigureAwait(false);
}
/// <summary> /// <summary>
/// Gets the registration status. /// Gets the registration status.
/// </summary> /// </summary>
@ -97,7 +109,7 @@ namespace MediaBrowser.Common.Implementations.Security
/// <param name="mb2Equivalent">The MB2 equivalent.</param> /// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <param name="version">The version of this feature</param> /// <param name="version">The version of this feature</param>
/// <returns>Task{MBRegistrationRecord}.</returns> /// <returns>Task{MBRegistrationRecord}.</returns>
public async Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null, string version = null) public async Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent, string version)
{ {
return await MBRegistration.GetRegistrationStatus(_httpClient, _jsonSerializer, feature, mb2Equivalent, version).ConfigureAwait(false); return await MBRegistration.GetRegistrationStatus(_httpClient, _jsonSerializer, feature, mb2Equivalent, version).ConfigureAwait(false);
} }

@ -24,14 +24,22 @@ namespace MediaBrowser.Common.Security
string LegacyKey { get; set; } string LegacyKey { get; set; }
/// <summary> /// <summary>
/// Gets the registration status. /// Gets the registration status. Overload to support existing plug-ins.
/// </summary> /// </summary>
/// <param name="feature">The feature.</param> /// <param name="feature">The feature.</param>
/// <param name="mb2Equivalent">The MB2 equivalent.</param> /// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <param name="version">The version of the feature</param> /// <param name="version">The version of the feature</param>
/// <returns>Task{MBRegistrationRecord}.</returns> /// <returns>Task{MBRegistrationRecord}.</returns>
Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null, string version = null); Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent = null);
/// <summary>
/// Gets the registration status.
/// </summary>
/// <param name="feature">The feature.</param>
/// <param name="mb2Equivalent">The MB2 equivalent.</param>
/// <param name="version">The version of the feature</param>
/// <returns>Task{MBRegistrationRecord}.</returns>
Task<MBRegistrationRecord> GetRegistrationStatus(string feature, string mb2Equivalent, string version);
/// <summary> /// <summary>
/// Load all registration info for all entities that require registration /// Load all registration info for all entities that require registration
/// </summary> /// </summary>

Loading…
Cancel
Save