public void Publish(ExceptionAndComputerDetail detailsToPublish) { // Save the exception to the desktop until I get remote publishing working. this.SaveToDesktop(detailsToPublish); // TODO: send it to a webservice or post on the issue tracker on CodePlex. }
public void SaveToDesktop(ExceptionAndComputerDetail detailsToPublish) { using (var file = new FileStream(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "BabyBashXnaError.txt"), FileMode.Create, FileAccess.Write, FileShare.None)) detailsToPublish.ToStream(file); }