Esempio n. 1
0
        public void Write(EmbeddedSymbolStream stream)
        {
            var output = stream.ToString();
            if (string.IsNullOrEmpty(output))
                return;

            var temporaryFile = Path.GetTempFileName();
            try
            {
                File.WriteAllText(temporaryFile, output);
                this.ExecuteWrite(Resources.WriteCommand.FormatWith(this.symbolPath, temporaryFile));
            }
            finally
            {
                File.Delete(temporaryFile);
            }
        }
Esempio n. 2
0
        public void Write(EmbeddedSymbolStream stream)
        {
            var output = stream.ToString();

            if (string.IsNullOrEmpty(output))
            {
                return;
            }

            var temporaryFile = Path.GetTempFileName();

            try
            {
                File.WriteAllText(temporaryFile, output);
                this.ExecuteWrite(Resources.WriteCommand.FormatWith(this.symbolPath, temporaryFile));
            }
            finally
            {
                File.Delete(temporaryFile);
            }
        }