[SOLVED] OWIN Self Hosted - Wisej.Base.ApplicationBase.RestoreSession and Wisej.Core.ResponsiveProfileChangedEventArgs issue in 2.0

Answered
0
0

Hi,

I tried to migrate my existing Wisej OWIN Self Hosted code to use 2.0 Wisej.Framework. I have noticed the below are not available in the 2.x beta release. Is there any work around to fix the below ones?

Source file: WisejWorkerRequest.cs
(1) Wisej.Core.ResponsiveProfileChangedEventArgs  : Does not exist in the namespace
(2) Wisej.Base.ApplicationBase.RestoreSession(HttpContext.Current) : Does not exist in the namespace.

Can you pl help me with it?

Thanks and regards,
Diwakar

 

  • You must to post comments
Best Answer
0
0

Hi,

I found ResponsiveProfileChangedEventArgs is now under “Wisej.Web” and it works ok, thank you for your inputs. Also the ‘Application’ object is now part of the ‘Wisej.Web’ namespace but I could not find ‘RestoreSession‘ method in ‘Application’ object and hence not sure if there is any work around to restore the session in the new Wisej 2.0:

Usage example:
Wisej.Web.Application.RestoreSession(HttpContext.Current);

Does this method exist or any work around? Your help is much appreciated.

Best regards,
Diwakar

 

  • Luca (ITG)
    Application.RestoreSession(HttpContext) is unchanged in 2.0. It doesn’t show in intellisense also in 1.5 because it’s hidden by design.
  • You must to post comments
1
0

Use Application instead of ApplicationBase. See section 10 in the Wisej-WhatsNew-2.0.pdf installed with Wisej 2.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.