mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Bind any collection to SignalR with a single call.
This commit is contained in:
parent
87a5dc7869
commit
a6aba16902
13 changed files with 106 additions and 26 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNet.SignalR;
|
||||
using Microsoft.AspNet.SignalR.Json;
|
||||
using TinyIoC;
|
||||
|
||||
namespace NzbDrone.Api.SignalR
|
||||
|
@ -13,6 +14,8 @@ namespace NzbDrone.Api.SignalR
|
|||
public static void Register(TinyIoCContainer container)
|
||||
{
|
||||
GlobalHost.DependencyResolver = new SignalrDependencyResolver(container);
|
||||
|
||||
container.Register<IJsonSerializer, Serializer>().AsSingleton();
|
||||
}
|
||||
|
||||
private SignalrDependencyResolver(TinyIoCContainer container)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue