HttpApplicationState when migrating from VWG to Wisej

0
0

Hi,

in Global.asax.cs I set the application state, but I don’t know how to access it in Wisej. In VWG it looks like

VWGContext.Current.HttpContext.Application[“VARIABLE”].

Could you please point me out.

Thank for your help.

Trang

  • You must to post comments
0
0

We don’t use global asax and we don’t use the ASP.NET session. You can use Wisej.Web.Application.Session. It’s a dynamic object. If you need to use the HttpContext you can refer to it using HttpContext.Current. However  with WebSocket there is not HttpContext after the first request.

  • Page Page
    In VWG we init variables and some configurations inside Application_Start (Global.asax.cs) ( for application, not per user session), where should we put the code in Wisej? Program.cs can be good place? Another problem with old code in Application_AuthenticateRequest, can it also be in Program.cs? Trang
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.