public void sendResult(byte[] encryptedKey, string encryptedData) { SourceSessionKeyNonce sskn = SSUtils.readKeyEncapsulation(ca, email, encryptedKey); string dataString = AESUtils.decryptText(encryptedData, sskn.sessionKey); XElement resultCalendarXml = XElement.Parse(dataString); string resultedDate = resultCalendarXml.Element("Date").Value; TimePeriod date = readXmlDate(resultedDate); Warning n = new Warning(ci.WriteLine); n.BeginInvoke("The meeting is scheduled from: " + date.Start + " to " + date.End, "REsUlt", null, null); addMeeting(date); }