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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.