public override bool Send(string fileName, Stream file, Report report, SerializableException exception) { report.CustomInfo = new BugReportExtraInfo(); var data = string.Concat("<BugReport>", report.ToString(), exception.ToString(), "</BugReport>"); return(_sender.SendData(CompressionTools.ZipString(data))); }
/// <summary> /// Send usage data specified mail address /// </summary> public static void SendUsageData() { if (DataSender == null) { throw new InvalidOperationException("DataSender must be set before sending data"); } lock (OperationLock) { DataSender.SendData(CompressionTools.ZipString(CurrentData.ToString(SaveOptions.DisableFormatting))); } }