SignalR/SignalR — Issue #231: DependencyResolver on AspNetHost should not be static
Author: pszmyd
Created: 2012-03-08 01:04:10+00:00
State: open

Using a single static dependency resolver makes it impossible to create isolated containers in multi-tenant environment.

I'm trying to wire SignalR with Orchard and this makes a huge problem. Orchard keeps a separate lifetime scope for each tenant, which allows to isolate tenants inside a single AppDomain. Using static variable forces to keep a single instance shared across all tenants, which makes it impossible to utilize eg. tenant-specific dependencies, routing information etc.