Пример #1
0
        protected virtual void OnRemoteEndPointCloseIMWindow(CloseIMWindowEventArgs e)
        {
            if (RemoteEndPointCloseIMWindow != null)
                RemoteEndPointCloseIMWindow(this, e);

            if (e.Sender != null && e.SenderEndPoint != null)
            {
                string partiesString = string.Empty;
                foreach (Contact party in e.Parties)
                {
                    partiesString += party.ToString() + "\r\n";
                }

                Trace.WriteLineIf(Settings.TraceSwitch.TraceVerbose,
                                  "User at End Point: " + e.SenderEndPoint.ToString() + " has closed the IM window.\r\n" +
                                  "Parties in the conversation: \r\n" +
                                  partiesString);
            }
        }
Пример #2
0
        void Nameserver_RemoteEndPointCloseIMWindow(object sender, CloseIMWindowEventArgs e)
        {
            if (e.Sender != null && e.SenderEndPoint != null)
            {
                string partiesString = string.Empty;
                foreach (Contact party in e.Parties)
                {
                    partiesString += party.ToString() + "\r\n";
                }

                Trace.WriteLine("[Output by Client] User at End Point: " + e.SenderEndPoint.ToString() + " has closed the IM window.\r\n" +
                                "Parties in the conversation: \r\n" +
                                partiesString);
            }
        }