コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }