SignalR/SignalR — Issue #216: Issues with the SignalR.Ninject 
Author: olalawal
Created: 2012-03-01 21:25:11+00:00
State: open

I have all the Nuget Bits for SignalIR , I am trying to use my own clientIDs as well as the dependency Inejction Contain that comes with SignalIR for all my other repositories and such. Now the strang thing is this jquery to connect to the hup fails on :

debugger;
// Proxy created on the fly
var chat = $.connection.chat;

basially the chat object becomes undefied as if signalIR cannot be resloved ?
this started happening once I tried to overide the defult resolver for signalIR with the code below.

what am I missing here

another issue I am having is I am not sure if my UserClientIDfactory which implements IConnectionIdFactory
is working either.

here is the MVC3 code in my Global.asax

private static IKernel CreateKernel()
{
var kernel = new StandardKernel();
RegisterServices(kernel);
return kernel;
}

private static void RegisterServices(IKernel kernel)
{

kernel.Bind()
.To()
.InRequestScope();

//Rest of the other stuff to inject
}

protected void Application_Start()
{

AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);

//ninject calls to create the kernal etc
IKernel kernel = CreateKernel();

//TO DO using signal IR resolver
var resolver = new NinjectDependencyResolver(kernel);
SignalR.Hosting.AspNet.AspNetHost.SetResolver(resolver);

}