Thanks!
I added a few new notifications to AppNotifier.cs. For Example:
public async Task NotifyMemberOfGroupUpdateAsync(User reciever, User invitingUser, long groupId, string message, NotificationType notificationType)
{
var notificationData = new MessageNotificationData(message);
notificationData["memberPictureUrl"] = (invitingUser.ProfilePicture != null) ? invitingUser.ProfilePicture.LocationUrl : "";
notificationData["groupId"] = groupId;
notificationData["notificationType"] = (int)notificationType;
await _notificationPublisher.PublishAsync(
AppNotificationNames.NotifyMemberOfGroupUpdateAsync,
data: notificationData,
severity: NotificationSeverity.Info,
userIds: new[] { reciever.ToUserIdentifier() });
}
My question is, when these notifications are published, is it automactically also emitted via signalR or do I need to do somthing to emit it realtime via signalR. I checked the SignalRChatCommunicator.cs file in the Web.Core project and I don't see a signalR method that is sending it. I only see (getChatMessage, getFriendshipRequest, getUserConnectNotification, getUserStateChange, getallUnreadMessagesOfUserRead and getReadStateChange)
Thanks @aaron, That seemed to have worked for me.
Oh Sorry!
Trying this now.
Sorry I wasnt clear. Im more interesting in capturing the actual public client IP address from the incoming reqesting. Currently that oa not happening. Im only getting the known IP. How can I do this?
Does anyone have any idea about this?
Issue resolved, this was due to changes I made to the GetAll() call.
@ismcagdas After some investigation, I am confident the issue is not with the permissions but rather with the roles. There are a few things I am noticing with the Roles.
Bump to top, since it seems like this question was missed.