Standardize on spelling (Diagnostic -> Diagnostics) (#357)
authorAndrew Au <andrewau@microsoft.com>
Fri, 21 Jun 2019 23:45:07 +0000 (16:45 -0700)
committerGitHub <noreply@github.com>
Fri, 21 Jun 2019 23:45:07 +0000 (16:45 -0700)
27 files changed:
src/Microsoft.Diagnostic.Repl/Command/Attributes.cs
src/Microsoft.Diagnostic.Repl/Command/CommandBase.cs
src/Microsoft.Diagnostic.Repl/Command/CommandProcessor.cs
src/Microsoft.Diagnostic.Repl/Console/CharToLineConverter.cs
src/Microsoft.Diagnostic.Repl/Console/ConsoleProvider.cs
src/Microsoft.Diagnostic.Repl/Console/OutputType.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/DiagnosticHelpers.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/DiagnosticsIpc/IpcClient.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/DiagnosticsIpc/IpcCommands.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/DiagnosticsIpc/IpcHeader.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/DiagnosticsIpc/IpcMessage.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/DiagnosticMessageType.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/EventPipeClient.cs
src/Microsoft.Diagnostics.Tools.RuntimeClient/Eventing/MessageHeader.cs
src/Tools/dotnet-dump/AnalyzeContext.cs
src/Tools/dotnet-dump/Analyzer.cs
src/Tools/dotnet-dump/Commands/ClrModulesCommand.cs
src/Tools/dotnet-dump/Commands/ExitCommand.cs
src/Tools/dotnet-dump/Commands/HelpCommand.cs
src/Tools/dotnet-dump/Commands/ModulesCommand.cs
src/Tools/dotnet-dump/Commands/SOSCommand.cs
src/Tools/dotnet-dump/Commands/SetThreadCommand.cs
src/Tools/dotnet-dump/Dumper.Linux.cs
src/Tools/dotnet-dump/Dumper.Windows.cs
src/Tools/dotnet-dump/Dumper.cs
src/Tools/dotnet-dump/Program.cs
src/tests/Microsoft.Diagnostics.Tools.RuntimeClient/Program.cs

index 06f8df3d2cea2b53591e77cbb75276764695ce45..b902cd3ce901bc7d7db56aefb0e167f7b1f3cab3 100644 (file)
@@ -5,7 +5,7 @@
 // --------------------------------------------------------------------
 using System;
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     /// <summary>
     /// Base command option attribute.
index 0d8b8cda17556e6bc3d5f755d4ff1058e75ac9d1..73d458067ef5ac273baaa67848b82e67e3ab9141 100644 (file)
@@ -8,7 +8,7 @@ using System.CommandLine;
 using System.CommandLine.Invocation;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     /// <summary>
     /// The common command context
index 3fa9efc463e8ea4205d98f52c9415985b1188d22..f174222d76cc446a0d342a612cb676228c05a8de 100644 (file)
@@ -15,7 +15,7 @@ using System.Linq;
 using System.Reflection;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     public class CommandProcessor
     {
index ffb2b3c478b723778a13add490155bfab49db2c3..ea3f3898e03fefa34fe59de0eca91b88e4d00229 100644 (file)
@@ -7,7 +7,7 @@
 using System;
 using System.Text;
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     public sealed class CharToLineConverter
     {
index 35554e60e032a9748b26d2e5a478e2e0b910b446..5cabdfe2cb03aedfeb0bb9ae840d1603781f9afc 100644 (file)
@@ -11,7 +11,7 @@ using System.Text;
 using System.Threading;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     public sealed class ConsoleProvider : IConsole
     {
index f1530aea89f5b67f392954537267c072376d531d..26b65aad2f2f1ed74da361ab8423a874291aebd6 100644 (file)
@@ -4,7 +4,7 @@
 //
 // --------------------------------------------------------------------
 
-namespace Microsoft.Diagnostic.Repl
+namespace Microsoft.Diagnostics.Repl
 {
     /// <summary>
     /// The type of output. 
index b34fb8df74cd7c1c9c9416ad53eb25f0f93c42ab..f6709fe09a52a66e735597186ed1c253b153f05a 100644 (file)
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
 
 namespace Microsoft.Diagnostics.Tools.RuntimeClient
 {
-    public static class DiagnosticHelpers
+    public static class DiagnosticsHelpers
     {
         /// <summary>
         /// Controls the contents of the dump
@@ -30,7 +30,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
         /// <param name="dumpName">Path and file name of core dump</param>
         /// <param name="dumpType">Type of dump</param>
         /// <param name="diagnostics">If true, log to console the dump generation diagnostics</param>
-        /// <returns>DiagnosticServerErrorCode</returns>
+        /// <returns>DiagnosticsServerErrorCode</returns>
         public static int GenerateCoreDump(int processId, string dumpName, DumpType dumpType, bool diagnostics)
         {
             if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
@@ -41,15 +41,15 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
 
 
             var payload = SerializeCoreDump(dumpName, dumpType, diagnostics);
-            var message = new IpcMessage(DiagnosticServerCommandSet.Dump, (byte)DumpCommandId.GenerateCoreDump, payload);
+            var message = new IpcMessage(DiagnosticsServerCommandSet.Dump, (byte)DumpCommandId.GenerateCoreDump, payload);
 
             var response = IpcClient.SendMessage(processId, message);
 
             var hr = 0;
-            switch ((DiagnosticServerCommandId)response.Header.CommandId)
+            switch ((DiagnosticsServerCommandId)response.Header.CommandId)
             {
-                case DiagnosticServerCommandId.Error:
-                case DiagnosticServerCommandId.OK:
+                case DiagnosticsServerCommandId.Error:
+                case DiagnosticsServerCommandId.OK:
                     hr = BitConverter.ToInt32(response.Payload);
                     break;
                 default:
@@ -81,20 +81,20 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
             }
 
             var header = new MessageHeader {
-                RequestType = DiagnosticMessageType.AttachProfiler,
+                RequestType = DiagnosticsMessageType.AttachProfiler,
                 Pid = (uint)Process.GetCurrentProcess().Id,
             };
 
             byte[] serializedConfiguration = SerializeProfilerAttach(attachTimeout, profilerGuid, profilerPath, additionalData);
-            var message = new IpcMessage(DiagnosticServerCommandSet.Profiler, (byte)ProfilerCommandId.AttachProfiler, serializedConfiguration);
+            var message = new IpcMessage(DiagnosticsServerCommandSet.Profiler, (byte)ProfilerCommandId.AttachProfiler, serializedConfiguration);
 
             var response = IpcClient.SendMessage(processId, message);
 
             var hr = 0;
-            switch ((DiagnosticServerCommandId)response.Header.CommandId)
+            switch ((DiagnosticsServerCommandId)response.Header.CommandId)
             {
-                case DiagnosticServerCommandId.Error:
-                case DiagnosticServerCommandId.OK:
+                case DiagnosticsServerCommandId.Error:
+                case DiagnosticsServerCommandId.OK:
                     hr = BitConverter.ToInt32(response.Payload);
                     break;
                 default:
index 4958b29793f0ea704220d615ea4e2351ae7a3f1f..7139d1b3747f240e89ff70eb39af7b11faea403a 100644 (file)
@@ -13,7 +13,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
 {
     public class IpcClient
     {
-        private static string DiagnosticPortPattern { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"^dotnet-diagnostic-(\d+)$" : @"^dotnet-diagnostic-(\d+)-(\d+)-socket$";
+        private static string DiagnosticsPortPattern { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"^dotnet-diagnostic-(\d+)$" : @"^dotnet-diagnostic-(\d+)-(\d+)-socket$";
 
         private static string IpcRootPath { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"\\.\pipe\" : Path.GetTempPath();
 
@@ -53,7 +53,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
         }
 
         /// <summary>
-        /// Sends a single DiagnosticIpc Message to the dotnet process with PID processId.
+        /// Sends a single DiagnosticsIpc Message to the dotnet process with PID processId.
         /// </summary>
         /// <param name="processId">The PID of the dotnet process</param>
         /// <param name="message">The DiagnosticsIpc Message to be sent</param>
@@ -68,7 +68,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
         }
 
         /// <summary>
-        /// Sends a single DiagnosticIpc Message to the dotnet process with PID processId
+        /// Sends a single DiagnosticsIpc Message to the dotnet process with PID processId
         /// and returns the Stream for reuse in Optional Continuations.
         /// </summary>
         /// <param name="processId">The PID of the dotnet process</param>
index fbde8eee2ef77244bea89b75d9958de77dd29264..5aff4eda0a6f6265d6213f0b5e4e550848e7977e 100644 (file)
@@ -4,7 +4,7 @@ using System.Text;
 
 namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
 {
-    public enum DiagnosticServerCommandSet : byte
+    public enum DiagnosticsServerCommandSet : byte
     {
         Dump           = 0x01,
         EventPipe      = 0x02,
@@ -13,7 +13,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
         Server         = 0xFF,
     }
 
-    public enum DiagnosticServerCommandId : byte
+    public enum DiagnosticsServerCommandId : byte
     {
         OK    = 0x00,
         Error = 0xFF,
index 64e6fe5c0ccc25ff38056d01deedf03fc0ece2df..14269febe623a0f48bdbd748be0acb1f7c4fefdb 100644 (file)
@@ -12,7 +12,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
     {
         IpcHeader() { }
 
-        public IpcHeader(DiagnosticServerCommandSet commandSet, byte commandId)
+        public IpcHeader(DiagnosticsServerCommandSet commandSet, byte commandId)
         {
             CommandSet = (byte)commandSet;
             CommandId = commandId;
index c39df398c9b64c8cf121a1b0cc7ac1c65a433a18..ad299929ae9a3897e702fa562600901376d7a642 100644 (file)
@@ -16,7 +16,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.DiagnosticsIpc
             Header = header;
         }
 
-        internal IpcMessage(DiagnosticServerCommandSet commandSet, byte commandId, byte[] payload = null)
+        internal IpcMessage(DiagnosticsServerCommandSet commandSet, byte commandId, byte[] payload = null)
         {
             Header = new IpcHeader(commandSet, commandId);
             Payload = payload;
index 9be3d27278b1122593790210a08acbacdebdd909..883ea21184b840eef7b27ba5582802ad3c5bc0e8 100644 (file)
@@ -7,7 +7,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
     /// <summary>
     /// Different diagnostic message types that are handled by the runtime.
     /// </summary>
-    public enum DiagnosticMessageType : uint
+    public enum DiagnosticsMessageType : uint
     {
         /// <summary>
         /// Initiates core dump generation 
index 825e36746d085253a87a040e9ace102f66c31d17..be13fcae5799c0eba872132f3ad0b951cd6bbb58 100644 (file)
@@ -19,7 +19,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
 {
     public static class EventPipeClient
     {
-        private static string DiagnosticPortPattern { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"^dotnet-diagnostic-(\d+)$" : @"^dotnet-diagnostic-(\d+)-(\d+)-socket$";
+        private static string DiagnosticsPortPattern { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"^dotnet-diagnostic-(\d+)$" : @"^dotnet-diagnostic-(\d+)-(\d+)-socket$";
 
         private static string IpcRootPath { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? @"\\.\pipe\" : Path.GetTempPath();
 
@@ -34,8 +34,8 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
         {
             return Directory.GetFiles(IpcRootPath)
                 .Select(namedPipe => (new FileInfo(namedPipe)).Name)
-                .Where(input => Regex.IsMatch(input, DiagnosticPortPattern))
-                .Select(input => int.Parse(Regex.Match(input, DiagnosticPortPattern).Groups[1].Value, NumberStyles.Integer));
+                .Where(input => Regex.IsMatch(input, DiagnosticsPortPattern))
+                .Select(input => int.Parse(Regex.Match(input, DiagnosticsPortPattern).Groups[1].Value, NumberStyles.Integer));
         }
 
         /// <summary>
@@ -48,15 +48,15 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
         public static Stream CollectTracing(int processId, SessionConfiguration configuration, out ulong sessionId)
         {
             sessionId = 0;
-            var message = new IpcMessage(DiagnosticServerCommandSet.EventPipe, (byte)EventPipeCommandId.CollectTracing, configuration.Serialize());
+            var message = new IpcMessage(DiagnosticsServerCommandSet.EventPipe, (byte)EventPipeCommandId.CollectTracing, configuration.Serialize());
             var stream = IpcClient.SendMessage(processId, message, out var response);
 
-            switch ((DiagnosticServerCommandId)response.Header.CommandId)
+            switch ((DiagnosticsServerCommandId)response.Header.CommandId)
             {
-                case DiagnosticServerCommandId.OK:
+                case DiagnosticsServerCommandId.OK:
                     sessionId = BitConverter.ToUInt64(response.Payload);
                     break;
-                case DiagnosticServerCommandId.Error:
+                case DiagnosticsServerCommandId.Error:
                     // bad...
                     var hr = BitConverter.ToInt32(response.Payload);
                     throw new Exception($"Session start FAILED 0x{hr:X8}");
@@ -80,13 +80,13 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
 
             byte[] payload = BitConverter.GetBytes(sessionId);
 
-            var response = IpcClient.SendMessage(processId, new IpcMessage(DiagnosticServerCommandSet.EventPipe, (byte)EventPipeCommandId.StopTracing, payload));
+            var response = IpcClient.SendMessage(processId, new IpcMessage(DiagnosticsServerCommandSet.EventPipe, (byte)EventPipeCommandId.StopTracing, payload));
 
-            switch ((DiagnosticServerCommandId)response.Header.CommandId)
+            switch ((DiagnosticsServerCommandId)response.Header.CommandId)
             {
-                case DiagnosticServerCommandId.OK:
+                case DiagnosticsServerCommandId.OK:
                     return BitConverter.ToUInt64(response.Payload);
-                case DiagnosticServerCommandId.Error:
+                case DiagnosticsServerCommandId.Error:
                     return 0;
                 default:
                     return 0;
index 38c826599f4971b1ff57907015ce69117f16cad2..49b931cab39439c92ca98e205cdb432d56c129b7 100644 (file)
@@ -15,7 +15,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient
         /// <summary>
         /// Request type.
         /// </summary>
-        public DiagnosticMessageType RequestType;
+        public DiagnosticsMessageType RequestType;
 
         /// <summary>
         /// Remote process Id.
index 4dba574612994d225f0ffaf9958e6eef214fc536..7b794d39a1e21200f33763acea9435403a667451 100644 (file)
@@ -16,7 +16,7 @@ using System.Linq;
 using System.Runtime.InteropServices;
 using System.Threading;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     /// <summary>
     /// The the common context for analyze commands
index 2f342d852f8dd11cce35b040a58c4847c2a5c3d2..6baebb27985fcd65876a77b32f17805b72865fe7 100644 (file)
@@ -1,4 +1,4 @@
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using Microsoft.Diagnostics.Runtime;
 using SOS;
 using System;
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
 using System.Threading;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     public class Analyzer
     {
index 1d3fb61af9126d63fe2f5ab3f0de9638199d5a73..c46df3cec63c8ba32b4cbe2764ca8e22a5c502da 100644 (file)
@@ -1,10 +1,10 @@
 
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using Microsoft.Diagnostics.Runtime;
 using System.CommandLine;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "clrmodules", Help = "Lists the managed modules in the process.")]
     public class ClrModulesCommand : CommandBase
index 51d35c7df5b004abcefcbc3e63989a755d0f0da7..a35e6b130370f2b6d6bae56b3da9382a8eb36210 100644 (file)
@@ -1,9 +1,9 @@
 
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using System.CommandLine;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "exit", Help = "Exit interactive mode.")]
     [CommandAlias(Name = "quit")]
index 32e0a54b4899e81fb7b3783f13f57fb0d7bbd882..7aa371c5207261159e34aebff84daec04f83333a 100644 (file)
@@ -1,7 +1,7 @@
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using System.CommandLine;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "help", Help = "Display help for a command.")]
     public class HelpCommand : CommandBase
index a0e4998c5bcd40c20a531ba37e2c113798b712e6..6b04175584dc9cf4cbc27dbf04dd22b961a447bf 100644 (file)
@@ -1,11 +1,11 @@
 
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using Microsoft.Diagnostics.Runtime;
 using System.CommandLine;
 using System.Linq;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "modules", Help = "Displays the native modules in the process.")]
     [CommandAlias(Name = "lm")]
index e05aa01f1dfd38f94e9a46151f415be79fd56965..8fdd1a6c3e8259e4f2a14163ed45862155a62897 100644 (file)
@@ -1,10 +1,10 @@
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using System;
 using System.CommandLine;
 using System.IO;
 using System.Linq;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "clrstack",         AliasExpansion = "ClrStack",            Help = "Provides a stack trace of managed code only.")]
     [Command(Name = "clrthreads",       AliasExpansion = "Threads",             Help = "List the managed threads running.")]
index b9e12dce65729e1786d2f57acc7385b88385cfd1..e3c4604f1d8cce0108c6a244434d6c0b60cec181 100644 (file)
@@ -1,11 +1,11 @@
 
-using Microsoft.Diagnostic.Repl;
+using Microsoft.Diagnostics.Repl;
 using System;
 using System.Collections.Generic;
 using System.CommandLine;
 using System.Linq;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     [Command(Name = "setthread", Help = "Sets or displays the current thread for the SOS commands.")]
     [CommandAlias(Name = "threads")]
index fb0cfa307ac77c9adc572252032f36ab2c47206b..2a3e3d189c1d157e496862643d989065c48d8c23 100644 (file)
@@ -4,7 +4,7 @@ using System.Diagnostics;
 using System.Threading.Tasks;
 using System.IO;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     public partial class Dumper
     {
index 9b0d0a388dfb2bf6a2141bf91bf2db540e4483e4..62e22f41691aa2a6f98d37c3b06cbb1ffa95dfe2 100644 (file)
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
 using System.Threading.Tasks;
 using Microsoft.Win32.SafeHandles;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     public partial class Dumper
     {
index a75a6215a7dc6c24a357f77dc321252cbc85ed6b..5a0f09de98912b319add19299a4596547de66b5f 100644 (file)
@@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
 using System.Threading;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     public partial class Dumper
     {
@@ -57,10 +57,10 @@ namespace Microsoft.Diagnostic.Tools.Dump
                 }
                 else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
                 {
-                    DiagnosticHelpers.DumpType dumpType = type == DumpTypeOption.Heap ? DiagnosticHelpers.DumpType.WithHeap : DiagnosticHelpers.DumpType.Normal;
+                    DiagnosticsHelpers.DumpType dumpType = type == DumpTypeOption.Heap ? DiagnosticsHelpers.DumpType.WithHeap : DiagnosticsHelpers.DumpType.Normal;
 
                     // Send the command to the runtime to initiate the core dump
-                    var hr = DiagnosticHelpers.GenerateCoreDump(processId, output, dumpType, diagnostics: false);
+                    var hr = DiagnosticsHelpers.GenerateCoreDump(processId, output, dumpType, diagnostics: false);
                     if (hr != 0)
                     {
                         throw new InvalidOperationException($"Core dump generation FAILED 0x{hr:X8}");
index 917fb5060a11a6dd3477be78890ad149347ab3a9..9a6b6bdb89a5cc9d6c05bb82aaeb511f93f0c12e 100644 (file)
@@ -4,7 +4,7 @@ using System.CommandLine.Invocation;
 using System.IO;
 using System.Threading.Tasks;
 
-namespace Microsoft.Diagnostic.Tools.Dump
+namespace Microsoft.Diagnostics.Tools.Dump
 {
     class Program
     {
index 8441f0e743bbfcba4c1c19c117e77c2ec967d0b6..492f1441d6fc05b6efe14198aea46e1c2729c4bb 100644 (file)
@@ -18,7 +18,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.Tests
         static int Main(string[] args)
         {
             SendSmallerHeaderCommand();
-            SendInvalidDiagnosticMessageTypeCommand();
+            SendInvalidDiagnosticsMessageTypeCommand();
             SendInvalidInputData();
             TestCollectEventPipeTracing();
             return 100;
@@ -39,7 +39,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.Tests
                 {
                     using (var bw = new BinaryWriter(stream))
                     {
-                        bw.Write((uint)DiagnosticMessageType.StartEventPipeTracing);
+                        bw.Write((uint)DiagnosticsMessageType.StartEventPipeTracing);
                         bw.Flush();
                         stream.Position = 0;
 
@@ -60,7 +60,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.Tests
             }
         }
 
-        private static void SendInvalidDiagnosticMessageTypeCommand()
+        private static void SendInvalidDiagnosticsMessageTypeCommand()
         {
             Console.WriteLine("Send a wrong message type as the diagnostic header header.");
             ulong sessionId = 0;
@@ -178,7 +178,7 @@ namespace Microsoft.Diagnostics.Tools.RuntimeClient.Tests
                 try
                 {
                     var header = new MessageHeader {
-                        RequestType = DiagnosticMessageType.CollectEventPipeTracing,
+                        RequestType = DiagnosticsMessageType.CollectEventPipeTracing,
                         Pid = (uint)Process.GetCurrentProcess().Id,
                     };