public override void Spin(IRotorContext context) { var locator = GetServiceLocatorFromContext(context); var resolver = GetEmbeddedResourceResolver(locator); var table = resolver.GetEmbeddedResources(); var provider = new EmbeddedResourceVirtualPathProvider(table); HostingEnvironment.RegisterVirtualPathProvider(provider); }