added NoOpPerformanceCounterManager for signalr so linux doesn't blowup.

This commit is contained in:
Keivan Beigi 2013-07-26 17:05:33 -07:00
commit 5a52de7ba9
4 changed files with 112 additions and 1 deletions

View file

@ -1,5 +1,6 @@
using System;
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Infrastructure;
using NzbDrone.Common.Composition;
namespace NzbDrone.Api.SignalR
@ -15,6 +16,7 @@ namespace NzbDrone.Api.SignalR
private SignalrDependencyResolver(IContainer container)
{
container.RegisterSingleton(typeof(IPerformanceCounterManager), typeof(NoOpPerformanceCounterManager));
_container = container;
}
@ -28,4 +30,4 @@ namespace NzbDrone.Api.SignalR
return base.GetService(serviceType);
}
}
}
}