Example #1
0
        void session_ActivityInviteReceived(object sender, ActivityInivteReceivedEventArgs e)
        {
            IBuddy buddy;

            if (buddies.TryGet(e.Sender.ClientID, out buddy))
            {
                var args = new ActivityInvitationReceivedEventArgs(buddy)
                {
                    Executor   = e.Executor,
                    ActivityId = e.ActivityId,
                    Metadata   = e.Metadata
                };
                ActivityInvitationReceived(this, args);
                LogHistory(EventType.Activity, buddy);
            }
        }