System.Data.SQLite

Check-in [871b73784d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enhance diagnostic message formatting, especially for the newly supported ProcessStartInfo/DataReceivedEventArgs classes.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | vsNoNetFxFlags
Files: files | file ages | folders
SHA1: 871b73784d42bf03b2e47c401089201252bb8f97
User & Date: mistachkin 2013-12-28 07:35:59.641
Context
2013-12-28
09:08
For Visual Studio 2013 only, skip manually setting the per-user registry settings and run 'devenv.exe /setup' instead. check-in: 91a9bb5453 user: mistachkin tags: vsNoNetFxFlags
07:35
Enhance diagnostic message formatting, especially for the newly supported ProcessStartInfo/DataReceivedEventArgs classes. check-in: 871b73784d user: mistachkin tags: vsNoNetFxFlags
07:13
Simplify diagnostics for the Process/ProcessStartInfo classes. check-in: 81a7bf254e user: mistachkin tags: vsNoNetFxFlags
Changes
Unified Diff Ignore Whitespace Patch
Changes to tools/install/Installer.cs.
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319

        ///////////////////////////////////////////////////////////////////////

        #region TraceOps Class
        private static class TraceOps
        {
            #region Private Constants
            private const string DefaultDebugFormat = "#{0} @ {1}: {2}";
            private const string DefaultTraceFormat = "#{0} @ {1}: {2}";

            private const string Iso8601DateTimeOutputFormat =
                "yyyy.MM.ddTHH:mm:ss.fffffff";
            #endregion

            ///////////////////////////////////////////////////////////////////








|
|







304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319

        ///////////////////////////////////////////////////////////////////////

        #region TraceOps Class
        private static class TraceOps
        {
            #region Private Constants
            private const string DefaultDebugFormat = "#{0:000} @ {1}: {2}";
            private const string DefaultTraceFormat = "#{0:000} @ {1}: {2}";

            private const string Iso8601DateTimeOutputFormat =
                "yyyy.MM.ddTHH:mm:ss.fffffff";
            #endregion

            ///////////////////////////////////////////////////////////////////

4105
4106
4107
4108
4109
4110
4111
4112

4113
4114
4115

4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
            else if (type == typeof(ProcessStartInfo))
            {
                ProcessStartInfo startInfo = (ProcessStartInfo)value;

                result = String.Format(
                    "fileName = {0}, arguments = {1}, workingDirectory = {2}, " +
                    "useShellExecute = {3}, redirectStandardOutput = {4}, " +
                    "redirectStandardError = {5}", startInfo.FileName,

                    startInfo.Arguments, startInfo.WorkingDirectory,
                    startInfo.UseShellExecute, startInfo.RedirectStandardOutput,
                    startInfo.RedirectStandardError);

            }
            else if (type == typeof(Process))
            {
                Process process = (Process)value;

                result = process.Id.ToString();
            }
            else if (type == typeof(DataReceivedEventArgs))
            {
                DataReceivedEventArgs eventArgs = (DataReceivedEventArgs)value;

                result = eventArgs.Data;
            }
            else
            {
                result = value.ToString();

                if (result.Length == 0)
                    return "<empty>";







|
>
|
|
|
>











|







4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
            else if (type == typeof(ProcessStartInfo))
            {
                ProcessStartInfo startInfo = (ProcessStartInfo)value;

                result = String.Format(
                    "fileName = {0}, arguments = {1}, workingDirectory = {2}, " +
                    "useShellExecute = {3}, redirectStandardOutput = {4}, " +
                    "redirectStandardError = {5}", ForDisplay(
                    startInfo.FileName), ForDisplay(startInfo.Arguments),
                    ForDisplay(startInfo.WorkingDirectory), ForDisplay(
                    startInfo.UseShellExecute), ForDisplay(
                    startInfo.RedirectStandardOutput), ForDisplay(
                    startInfo.RedirectStandardError)); /* RECURSIVE */
            }
            else if (type == typeof(Process))
            {
                Process process = (Process)value;

                result = process.Id.ToString();
            }
            else if (type == typeof(DataReceivedEventArgs))
            {
                DataReceivedEventArgs eventArgs = (DataReceivedEventArgs)value;

                result = ForDisplay(eventArgs.Data); /* RECURSIVE */
            }
            else
            {
                result = value.ToString();

                if (result.Length == 0)
                    return "<empty>";