private void ReceiveInvitationCallback(IntPtr pData) { MeetingInvitation meetingInvitation = (MeetingInvitation)Marshal.PtrToStructure(pData, typeof(MeetingInvitation)); Invitation invitation = new Invitation() { Invitor = new Attendee() { Name = meetingInvitation.m_invitor.m_szDisplayName, Id = meetingInvitation.m_invitor.m_szPhoneId }, MeetingId = meetingInvitation.m_meetingId }; InvitationReceivedEvent?.Invoke(invitation); }
public void Consume(InvitationReceivedEvent @event) { _distributor.NotifyPerson(@event.InvitedId, new InvitationReceivedNotification(@event.GroupTitle, @event.InviterName, @event.SuggestedRole)); _eventRepository.AddEvent(new Event(@event)); }