private void ReportException(ExceptionData exData, bool async) { ExceptionSender sender = new ExceptionSender(apiKey, exData); if (async) { Thread senderThread = new Thread(new ThreadStart(sender.SendException)); senderThread.Start(); } else { sender.SendException(); } }
public ExceptionSender(string apiKey, ExceptionData data) : this(apiKey) { exceptionData = data; }