您好使用Visual Studio 2015,无法在AppHost中解析PooledRedisClientManager。谁能注意到问题是什么??
错误:找不到类型或命名空间名称'PooledRedisClientManager'(您是否缺少using指令或程序集引用?)
using ServiceStack;
using System.Web.Mvc;
using System.Web.Routing;
using ServiceStack.Redis;
using Funq;
//APP HOST in Global.asax
public MyAppHost() : base("Services ", typeof(myServices).Assembly) { }
public override void Configure(Container container)
{
SetConfig(new HostConfig { HandlerFactoryPath = "api" });
container.Register<IRedisClientsManager>(new PooledRedisClientManager());
}
答案 0 :(得分:1)
您需要来自NuGet的download ServiceStack.Redis:
<meta name="viewport"content="width=device-width,shrink-to-fit=no">