void client_OnMessageReport(object sender, ReportEventArgs e) { Console.WriteLine(e.MessageId); Console.WriteLine(e.StatusText); }
void _OnMessageReport(object sender, ReportEventArgs e) { Console.WriteLine("Received message report, {0}, {1}.", e.MessageId, e.StatusText); lock (_msgIds) if (_msgIds.Contains(e.MessageId)) _msgIds.Remove(e.MessageId); else Console.WriteLine("Message id not found: {0}.", e.MessageId); }