Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to check if a member is logged in within this code?
The _memberManager.IsLoggedIn(); always return false.
_memberManager.IsLoggedIn();
I have this code works perfectly fine but I need to add a feature where it needs to check the member state.
public class TestRequestNotification : INotificationHandler<RoutingRequestNotification> { private readonly IMemberManager _memberManager; public TestRequestNotification(IMemberManager memberManager) { _memberManager = memberManager; } public void Handle(RoutingRequestNotification notification) { var isLoggedIn = _memberManager.IsLoggedIn(); // always return false } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Check if member is logged-in in RoutingRequestNotification
How to check if a member is logged in within this code?
The
_memberManager.IsLoggedIn();
always return false.I have this code works perfectly fine but I need to add a feature where it needs to check the member state.
is working on a reply...