Ejemplo n.º 1
0
        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.
        }
Ejemplo n.º 2
0
 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);
 }