switch to flat file storage

This commit is contained in:
Luke Pulverenti
2013-06-17 16:35:43 -04:00
parent 95f471e8c3
commit e677a57bf1
44 changed files with 958 additions and 1594 deletions

View File

@@ -39,6 +39,11 @@ namespace MediaBrowser.Model.Entities
/// <returns>System.String.</returns>
public static string GetProviderId(this IHasProviderIds instance, string name)
{
if (instance == null)
{
throw new ArgumentNullException("instance");
}
if (instance.ProviderIds == null)
{
return null;
@@ -57,6 +62,11 @@ namespace MediaBrowser.Model.Entities
/// <param name="value">The value.</param>
public static void SetProviderId(this IHasProviderIds instance, string name, string value)
{
if (instance == null)
{
throw new ArgumentNullException("instance");
}
// If it's null remove the key from the dictionary
if (string.IsNullOrEmpty(value))
{