fixes #97 and creates a library dictionary cache to avoid FindById recursion

This commit is contained in:
Luke Pulverenti
2013-03-31 13:39:28 -04:00
parent b7c3bc592f
commit 9f06eb781f
22 changed files with 182 additions and 177 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Model.Logging;
using System.Globalization;
using MediaBrowser.Model.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -80,6 +81,8 @@ namespace MediaBrowser.Common.Net
return NullTaskResult;
}
protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
/// <summary>
/// Starts sending messages over a web socket
/// </summary>
@@ -88,8 +91,8 @@ namespace MediaBrowser.Common.Net
{
var vals = message.Data.Split(',');
var dueTimeMs = long.Parse(vals[0]);
var periodMs = long.Parse(vals[1]);
var dueTimeMs = long.Parse(vals[0], UsCulture);
var periodMs = long.Parse(vals[1], UsCulture);
var cancellationTokenSource = new CancellationTokenSource();