AI OnAI Off
ProfileBase is not available on .net core, so CurrentUserProfile and SecurityContext were removed in Commerce 14. what do you want to do with it ?
Hi Quan,
I have this piece of code that needs to be migrated to .net core. There is this State property which belongs to the ProfileBase
I need to develop a equivalent logic to accomplish the one above but I don't know what to properly use in .net core.
Really appreciate any help.
Thanks in advance,
I assume these are meant for checking locked user. If you are using AspNetIdentity, you can simply get the current user, and then
ApplicationUser.IsLockedOut
Hi All,
I'm migrating to Opti12 .net core and ran into this class "CurrentUserProfile" which is part of the ProfileBase class that no longer exists in Opti12, this is the piece of code with the issue:
var profile = Mediachase.Commerce.Security.SecurityContext.Current.CurrentUserProfile as Mediachase.Commerce.Customers.Profile.CustomerProfileWrapper;
I've looking for an equivalent in Opti12 with no luck.
Has anybody else ran into the same issue? What should I use in Opti12 that replace the "SecurityContext" and "ProfileBase".
Any help is appreciated.
Thanks in advance.