Skip to content

Instantly share code, notes, and snippets.

@PlexXoniC
PlexXoniC / gist:3426207
Created August 22, 2012 14:37
Signlar.Autofac
this is called from App_Start:
public class MvcInitializer : IStateChange
{
private readonly ILifetimeScope _container;
public MvcInitializer(ILifetimeScope container)
{
_container = container;
}
@PlexXoniC
PlexXoniC / Ex
Created August 21, 2012 19:24
Autofac Not working With Signalr
In my app_start:
//SignalR.Autofac
GlobalHost.DependencyResolver = new SignalR.Autofac.AutofacDependencyResolver(_container);
RouteTable.Routes.MapHubs();
DependencyResolver.SetResolver(new Autofac.Integration.Mvc.AutofacDependencyResolver(_container));
_container is ILifetimeScope