ServiceStack 'session' missing?

半腔热情 提交于 2019-12-13 05:59:56

问题


new to this and trying to follow a tutorial on Pluralsight. A simple row of code:

var trackedData = (TrackedData)Session[date.ToString()];

has Session underlined with red and I have not succeeded in getting rid of it. When the tutor's mouse hovered over the session, following tip was displayed. ServiceStack.CacheAccess.ISession Service.Session

But somehow I couldn't get it into the solution. I have installed ServiceStack, ServiceStack.Host.MVC, ServiceStack.Host.AspNet and more.


回答1:


Inside a Service the dynamic untyped Session Bag was renamed to base.SessionBag.



来源:https://stackoverflow.com/questions/31363927/servicestack-session-missing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!