From dfe68b72e594b5bebc287bb561eba0def5f8075d Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 21 May 2019 22:38:23 +0500 Subject: [PATCH 1/2] Fix minor style issues come from last commits --- .../commands/management/Eventlog.cs | 2 +- .../commands/management/Process.cs | 2 +- .../host/msh/ConsoleControl.cs | 2 +- .../engine/Attributes.cs | 16 +- .../engine/hostifaces/RunspaceInit.cs | 1 - .../engine/parser/tokenizer.cs | 1 + .../NewPSSessionConfigurationOptionCommand.cs | 4 +- .../PSSessionConfigurationTypeOption.cs | 2 +- .../remoting/common/RunspaceInitInfo.cs | 1 - .../utils/tracing/TracingGen.cs | 165 +++++++++--------- test/tools/WebListener/Startup.cs | 23 +-- 11 files changed, 112 insertions(+), 107 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs index 30e282352f9..b0366872ce2 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs @@ -5,8 +5,8 @@ using System.Collections; using System.Collections.Generic; using System.ComponentModel; // Win32Exception -using System.Diagnostics.CodeAnalysis; using System.Diagnostics; // Eventlog class +using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs index d869512e32a..05774131e10 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs @@ -6,8 +6,8 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; // Win32Exception -using System.Diagnostics.CodeAnalysis; using System.Diagnostics; // Process class +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs index d8a2c199d65..56fc731baf2 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs @@ -1178,7 +1178,7 @@ private static void BuildEdgeTypeInfo( firstRightLeadingRow = r; } - for (; ; ) + for (; ;) { r++; if (r > contentsRegion.Bottom) diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs index cd68824c2f4..8d3eaa08343 100644 --- a/src/System.Management.Automation/engine/Attributes.cs +++ b/src/System.Management.Automation/engine/Attributes.cs @@ -737,7 +737,6 @@ public string HelpMessageResourceId /// This is primarily to be used in functions that are implementing the logic for dynamic keywords. /// public bool DontShow { get; set; } - } /// @@ -1093,7 +1092,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind) "ValidationRangeElementType", innerException: null, Metadata.ValidateRangeElementType, - element.GetType().Name, typeof(int).Name); + element.GetType().Name, + typeof(int).Name); } object resultValue; @@ -1114,7 +1114,8 @@ private void ValidateRange(object element, ValidateRangeKind rangeKind) "ValidationRangeElementType", null, Metadata.ValidateRangeElementType, - element.GetType().Name, commonType.Name); + element.GetType().Name, + commonType.Name); } switch (rangeKind) @@ -1181,7 +1182,8 @@ private void ValidateRange(object element) "ValidationRangeElementType", null, Metadata.ValidateRangeElementType, - element.GetType().Name, MinRange.GetType().Name); + element.GetType().Name, + MinRange.GetType().Name); } } @@ -1192,7 +1194,8 @@ private void ValidateRange(object element) "ValidateRangeTooSmall", null, Metadata.ValidateRangeSmallerThanMinRangeFailure, - element.ToString(), MinRange.ToString()); + element.ToString(), + MinRange.ToString()); } if (_maxComparable.CompareTo(element) < 0) @@ -1201,7 +1204,8 @@ private void ValidateRange(object element) "ValidateRangeTooBig", null, Metadata.ValidateRangeGreaterThanMaxRangeFailure, - element.ToString(), MaxRange.ToString()); + element.ToString(), + MaxRange.ToString()); } } diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs index 3bd9bb34b44..d9616190772 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. - using Dbg = System.Management.Automation.Diagnostics; using DWORD = System.UInt32; diff --git a/src/System.Management.Automation/engine/parser/tokenizer.cs b/src/System.Management.Automation/engine/parser/tokenizer.cs index 9fcc1bddecb..33a1ca5fb4d 100644 --- a/src/System.Management.Automation/engine/parser/tokenizer.cs +++ b/src/System.Management.Automation/engine/parser/tokenizer.cs @@ -4624,6 +4624,7 @@ internal Token NextToken() { NormalizeCRLF(c1); } + if (c1 == '\n' || c1 == '\r') { NewToken(TokenKind.LineContinuation); diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs index 4ce270323ce..19731beb1d4 100644 --- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs @@ -65,9 +65,9 @@ internal WSManConfigurationOption() } /// - /// LoadFromDefaults. + /// Override LoadFromDefaults method. /// - /// + /// Keep old values. protected internal override void LoadFromDefaults(bool keepAssigned) { if (!keepAssigned || !_outputBufferingMode.HasValue) diff --git a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs index ada642256a8..4c34f1d4d3b 100644 --- a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs +++ b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs @@ -86,7 +86,7 @@ internal virtual Hashtable ConstructQuotasAsHashtable() /// If keepAssigned is true only those values are set /// which are unassigned. /// - /// + /// Keep old values. protected internal virtual void LoadFromDefaults(bool keepAssigned) { throw new NotImplementedException(); diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs index 84338f60bdf..629a046b492 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. - using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/utils/tracing/TracingGen.cs b/src/System.Management.Automation/utils/tracing/TracingGen.cs index d17d3b07ce9..30fd715cb66 100644 --- a/src/System.Management.Automation/utils/tracing/TracingGen.cs +++ b/src/System.Management.Automation/utils/tracing/TracingGen.cs @@ -240,7 +240,7 @@ protected override EventDescriptor TransferEvent } /// - /// WriteTransferEvent (EventId: 0x1f05/7941) + /// WriteTransferEvent (EventId: 0x1f05/7941). /// [EtwEvent(0x1f05)] public void WriteTransferEvent(Guid currentActivityId, Guid parentActivityId) @@ -249,7 +249,7 @@ public void WriteTransferEvent(Guid currentActivityId, Guid parentActivityId) } /// - /// DebugMessage (EventId: 0xc000/49152) + /// DebugMessage (EventId: 0xc000/49152). /// [EtwEvent(0xc000)] public void DebugMessage(string message) @@ -258,7 +258,7 @@ public void DebugMessage(string message) } /// - /// AbortingWorkflowExecution (EventId: 0xb038/45112) + /// AbortingWorkflowExecution (EventId: 0xb038/45112). /// [EtwEvent(0xb038)] public void AbortingWorkflowExecution(Guid workflowId, string reason) @@ -267,7 +267,7 @@ public void AbortingWorkflowExecution(Guid workflowId, string reason) } /// - /// ActivityExecutionFinished (EventId: 0xb03f/45119) + /// ActivityExecutionFinished (EventId: 0xb03f/45119). /// [EtwEvent(0xb03f)] public void ActivityExecutionFinished(string activityName) @@ -276,7 +276,7 @@ public void ActivityExecutionFinished(string activityName) } /// - /// ActivityExecutionQueued (EventId: 0xb017/45079) + /// ActivityExecutionQueued (EventId: 0xb017/45079). /// [EtwEvent(0xb017)] public void ActivityExecutionQueued(Guid workflowId, string activityName) @@ -285,7 +285,7 @@ public void ActivityExecutionQueued(Guid workflowId, string activityName) } /// - /// ActivityExecutionStarted (EventId: 0xb018/45080) + /// ActivityExecutionStarted (EventId: 0xb018/45080). /// [EtwEvent(0xb018)] public void ActivityExecutionStarted(string activityName, string activityTypeName) @@ -294,7 +294,7 @@ public void ActivityExecutionStarted(string activityName, string activityTypeNam } /// - /// BeginContainerParentJobExecution (EventId: 0xb50c/46348) + /// BeginContainerParentJobExecution (EventId: 0xb50c/46348). /// [EtwEvent(0xb50c)] public void BeginContainerParentJobExecution(Guid containerParentJobInstanceId) @@ -303,7 +303,7 @@ public void BeginContainerParentJobExecution(Guid containerParentJobInstanceId) } /// - /// BeginCreateNewJob (EventId: 0xb503/46339) + /// BeginCreateNewJob (EventId: 0xb503/46339). /// [EtwEvent(0xb503)] public void BeginCreateNewJob(Guid trackingId) @@ -312,7 +312,7 @@ public void BeginCreateNewJob(Guid trackingId) } /// - /// BeginJobLogic (EventId: 0xb506/46342) + /// BeginJobLogic (EventId: 0xb506/46342). /// [EtwEvent(0xb506)] public void BeginJobLogic(Guid workflowJobJobInstanceId) @@ -321,7 +321,7 @@ public void BeginJobLogic(Guid workflowJobJobInstanceId) } /// - /// BeginProxyChildJobEventHandler (EventId: 0xb512/46354) + /// BeginProxyChildJobEventHandler (EventId: 0xb512/46354). /// [EtwEvent(0xb512)] public void BeginProxyChildJobEventHandler(Guid proxyChildJobInstanceId) @@ -330,7 +330,7 @@ public void BeginProxyChildJobEventHandler(Guid proxyChildJobInstanceId) } /// - /// BeginProxyJobEventHandler (EventId: 0xb510/46352) + /// BeginProxyJobEventHandler (EventId: 0xb510/46352). /// [EtwEvent(0xb510)] public void BeginProxyJobEventHandler(Guid proxyJobInstanceId) @@ -339,7 +339,7 @@ public void BeginProxyJobEventHandler(Guid proxyJobInstanceId) } /// - /// BeginProxyJobExecution (EventId: 0xb50e/46350) + /// BeginProxyJobExecution (EventId: 0xb50e/46350). /// [EtwEvent(0xb50e)] public void BeginProxyJobExecution(Guid proxyJobInstanceId) @@ -348,7 +348,7 @@ public void BeginProxyJobExecution(Guid proxyJobInstanceId) } /// - /// BeginRunGarbageCollection (EventId: 0xb514/46356) + /// BeginRunGarbageCollection (EventId: 0xb514/46356). /// [EtwEvent(0xb514)] public void BeginRunGarbageCollection() @@ -357,7 +357,7 @@ public void BeginRunGarbageCollection() } /// - /// BeginStartWorkflowApplication (EventId: 0xb501/46337) + /// BeginStartWorkflowApplication (EventId: 0xb501/46337). /// [EtwEvent(0xb501)] public void BeginStartWorkflowApplication(Guid trackingId) @@ -366,7 +366,7 @@ public void BeginStartWorkflowApplication(Guid trackingId) } /// - /// BeginWorkflowExecution (EventId: 0xb508/46344) + /// BeginWorkflowExecution (EventId: 0xb508/46344). /// [EtwEvent(0xb508)] public void BeginWorkflowExecution(Guid workflowJobJobInstanceId) @@ -375,7 +375,7 @@ public void BeginWorkflowExecution(Guid workflowJobJobInstanceId) } /// - /// CancellingWorkflowExecution (EventId: 0xb037/45111) + /// CancellingWorkflowExecution (EventId: 0xb037/45111). /// [EtwEvent(0xb037)] public void CancellingWorkflowExecution(Guid workflowId) @@ -384,7 +384,7 @@ public void CancellingWorkflowExecution(Guid workflowId) } /// - /// ChildWorkflowJobAddition (EventId: 0xb50a/46346) + /// ChildWorkflowJobAddition (EventId: 0xb50a/46346). /// [EtwEvent(0xb50a)] public void ChildWorkflowJobAddition(Guid workflowJobInstanceId, Guid containerParentJobInstanceId) @@ -393,7 +393,7 @@ public void ChildWorkflowJobAddition(Guid workflowJobInstanceId, Guid containerP } /// - /// EndContainerParentJobExecution (EventId: 0xb50d/46349) + /// EndContainerParentJobExecution (EventId: 0xb50d/46349). /// [EtwEvent(0xb50d)] public void EndContainerParentJobExecution(Guid containerParentJobInstanceId) @@ -402,7 +402,7 @@ public void EndContainerParentJobExecution(Guid containerParentJobInstanceId) } /// - /// EndCreateNewJob (EventId: 0xb504/46340) + /// EndCreateNewJob (EventId: 0xb504/46340). /// [EtwEvent(0xb504)] public void EndCreateNewJob(Guid trackingId) @@ -411,7 +411,7 @@ public void EndCreateNewJob(Guid trackingId) } /// - /// EndJobLogic (EventId: 0xb507/46343) + /// EndJobLogic (EventId: 0xb507/46343). /// [EtwEvent(0xb507)] public void EndJobLogic(Guid workflowJobJobInstanceId) @@ -420,7 +420,7 @@ public void EndJobLogic(Guid workflowJobJobInstanceId) } /// - /// EndpointDisabled (EventId: 0xb044/45124) + /// EndpointDisabled (EventId: 0xb044/45124). /// [EtwEvent(0xb044)] public void EndpointDisabled(string endpointName, string disabledBy) @@ -429,7 +429,7 @@ public void EndpointDisabled(string endpointName, string disabledBy) } /// - /// EndpointEnabled (EventId: 0xb045/45125) + /// EndpointEnabled (EventId: 0xb045/45125). /// [EtwEvent(0xb045)] public void EndpointEnabled(string endpointName, string enabledBy) @@ -438,7 +438,7 @@ public void EndpointEnabled(string endpointName, string enabledBy) } /// - /// EndpointModified (EventId: 0xb042/45122) + /// EndpointModified (EventId: 0xb042/45122). /// [EtwEvent(0xb042)] public void EndpointModified(string endpointName, string modifiedBy) @@ -447,7 +447,7 @@ public void EndpointModified(string endpointName, string modifiedBy) } /// - /// EndpointRegistered (EventId: 0xb041/45121) + /// EndpointRegistered (EventId: 0xb041/45121). /// [EtwEvent(0xb041)] public void EndpointRegistered(string endpointName, string registeredBy) @@ -456,7 +456,7 @@ public void EndpointRegistered(string endpointName, string registeredBy) } /// - /// EndpointUnregistered (EventId: 0xb043/45123) + /// EndpointUnregistered (EventId: 0xb043/45123). /// [EtwEvent(0xb043)] public void EndpointUnregistered(string endpointName, string unregisteredBy) @@ -465,7 +465,7 @@ public void EndpointUnregistered(string endpointName, string unregisteredBy) } /// - /// EndProxyChildJobEventHandler (EventId: 0xb513/46355) + /// EndProxyChildJobEventHandler (EventId: 0xb513/46355). /// [EtwEvent(0xb513)] public void EndProxyChildJobEventHandler(Guid proxyChildJobInstanceId) @@ -474,7 +474,7 @@ public void EndProxyChildJobEventHandler(Guid proxyChildJobInstanceId) } /// - /// EndProxyJobEventHandler (EventId: 0xb511/46353) + /// EndProxyJobEventHandler (EventId: 0xb511/46353). /// [EtwEvent(0xb511)] public void EndProxyJobEventHandler(Guid proxyJobInstanceId) @@ -483,7 +483,7 @@ public void EndProxyJobEventHandler(Guid proxyJobInstanceId) } /// - /// EndProxyJobExecution (EventId: 0xb50f/46351) + /// EndProxyJobExecution (EventId: 0xb50f/46351). /// [EtwEvent(0xb50f)] public void EndProxyJobExecution(Guid proxyJobInstanceId) @@ -492,7 +492,7 @@ public void EndProxyJobExecution(Guid proxyJobInstanceId) } /// - /// EndRunGarbageCollection (EventId: 0xb515/46357) + /// EndRunGarbageCollection (EventId: 0xb515/46357). /// [EtwEvent(0xb515)] public void EndRunGarbageCollection() @@ -501,7 +501,7 @@ public void EndRunGarbageCollection() } /// - /// EndStartWorkflowApplication (EventId: 0xb502/46338) + /// EndStartWorkflowApplication (EventId: 0xb502/46338). /// [EtwEvent(0xb502)] public void EndStartWorkflowApplication(Guid trackingId) @@ -510,7 +510,7 @@ public void EndStartWorkflowApplication(Guid trackingId) } /// - /// EndWorkflowExecution (EventId: 0xb509/46345) + /// EndWorkflowExecution (EventId: 0xb509/46345). /// [EtwEvent(0xb509)] public void EndWorkflowExecution(Guid workflowJobJobInstanceId) @@ -519,7 +519,7 @@ public void EndWorkflowExecution(Guid workflowJobJobInstanceId) } /// - /// ErrorImportingWorkflowFromXaml (EventId: 0xb01b/45083) + /// ErrorImportingWorkflowFromXaml (EventId: 0xb01b/45083). /// [EtwEvent(0xb01b)] public void ErrorImportingWorkflowFromXaml(Guid workflowId, string errorDescription) @@ -528,7 +528,7 @@ public void ErrorImportingWorkflowFromXaml(Guid workflowId, string errorDescript } /// - /// ForcedWorkflowShutdownError (EventId: 0xb03c/45116) + /// ForcedWorkflowShutdownError (EventId: 0xb03c/45116). /// [EtwEvent(0xb03c)] public void ForcedWorkflowShutdownError(Guid workflowId, string errorDescription) @@ -537,7 +537,7 @@ public void ForcedWorkflowShutdownError(Guid workflowId, string errorDescription } /// - /// ForcedWorkflowShutdownFinished (EventId: 0xb03b/45115) + /// ForcedWorkflowShutdownFinished (EventId: 0xb03b/45115). /// [EtwEvent(0xb03b)] public void ForcedWorkflowShutdownFinished(Guid workflowId) @@ -546,7 +546,7 @@ public void ForcedWorkflowShutdownFinished(Guid workflowId) } /// - /// ForcedWorkflowShutdownStarted (EventId: 0xb03a/45114) + /// ForcedWorkflowShutdownStarted (EventId: 0xb03a/45114). /// [EtwEvent(0xb03a)] public void ForcedWorkflowShutdownStarted(Guid workflowId) @@ -555,7 +555,7 @@ public void ForcedWorkflowShutdownStarted(Guid workflowId) } /// - /// ImportedWorkflowFromXaml (EventId: 0xb01a/45082) + /// ImportedWorkflowFromXaml (EventId: 0xb01a/45082). /// [EtwEvent(0xb01a)] public void ImportedWorkflowFromXaml(Guid workflowId, string xamlFile) @@ -564,7 +564,7 @@ public void ImportedWorkflowFromXaml(Guid workflowId, string xamlFile) } /// - /// ImportingWorkflowFromXaml (EventId: 0xb019/45081) + /// ImportingWorkflowFromXaml (EventId: 0xb019/45081). /// [EtwEvent(0xb019)] public void ImportingWorkflowFromXaml(Guid workflowId, string xamlFile) @@ -573,7 +573,7 @@ public void ImportingWorkflowFromXaml(Guid workflowId, string xamlFile) } /// - /// JobCreationComplete (EventId: 0xb032/45106) + /// JobCreationComplete (EventId: 0xb032/45106). /// [EtwEvent(0xb032)] public void JobCreationComplete(Guid jobId, Guid workflowId) @@ -582,7 +582,7 @@ public void JobCreationComplete(Guid jobId, Guid workflowId) } /// - /// JobError (EventId: 0xb02e/45102) + /// JobError (EventId: 0xb02e/45102). /// [EtwEvent(0xb02e)] public void JobError(int jobId, Guid workflowId, string errorDescription) @@ -591,7 +591,7 @@ public void JobError(int jobId, Guid workflowId, string errorDescription) } /// - /// JobRemoved (EventId: 0xb033/45107) + /// JobRemoved (EventId: 0xb033/45107). /// [EtwEvent(0xb033)] public void JobRemoved(Guid parentJobId, Guid childJobId, Guid workflowId) @@ -600,7 +600,7 @@ public void JobRemoved(Guid parentJobId, Guid childJobId, Guid workflowId) } /// - /// JobRemoveError (EventId: 0xb034/45108) + /// JobRemoveError (EventId: 0xb034/45108). /// [EtwEvent(0xb034)] public void JobRemoveError(Guid parentJobId, Guid childJobId, Guid workflowId, string error) @@ -609,7 +609,7 @@ public void JobRemoveError(Guid parentJobId, Guid childJobId, Guid workflowId, s } /// - /// JobStateChanged (EventId: 0xb02d/45101) + /// JobStateChanged (EventId: 0xb02d/45101). /// [EtwEvent(0xb02d)] public void JobStateChanged(int jobId, Guid workflowId, string newState, string oldState) @@ -618,7 +618,7 @@ public void JobStateChanged(int jobId, Guid workflowId, string newState, string } /// - /// LoadingWorkflowForExecution (EventId: 0xb035/45109) + /// LoadingWorkflowForExecution (EventId: 0xb035/45109). /// [EtwEvent(0xb035)] public void LoadingWorkflowForExecution(Guid workflowId) @@ -627,7 +627,7 @@ public void LoadingWorkflowForExecution(Guid workflowId) } /// - /// OutOfProcessRunspaceStarted (EventId: 0xb046/45126) + /// OutOfProcessRunspaceStarted (EventId: 0xb046/45126). /// [EtwEvent(0xb046)] public void OutOfProcessRunspaceStarted(string command) @@ -636,7 +636,7 @@ public void OutOfProcessRunspaceStarted(string command) } /// - /// ParameterSplattingWasPerformed (EventId: 0xb047/45127) + /// ParameterSplattingWasPerformed (EventId: 0xb047/45127). /// [EtwEvent(0xb047)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] @@ -646,7 +646,7 @@ public void ParameterSplattingWasPerformed(string parameters, string computers) } /// - /// ParentJobCreated (EventId: 0xb031/45105) + /// ParentJobCreated (EventId: 0xb031/45105). /// [EtwEvent(0xb031)] public void ParentJobCreated(Guid jobId) @@ -655,7 +655,7 @@ public void ParentJobCreated(Guid jobId) } /// - /// PersistenceStoreMaxSizeReached (EventId: 0xb516/46358) + /// PersistenceStoreMaxSizeReached (EventId: 0xb516/46358). /// [EtwEvent(0xb516)] public void PersistenceStoreMaxSizeReached() @@ -664,7 +664,7 @@ public void PersistenceStoreMaxSizeReached() } /// - /// PersistingWorkflow (EventId: 0xb03d/45117) + /// PersistingWorkflow (EventId: 0xb03d/45117). /// [EtwEvent(0xb03d)] public void PersistingWorkflow(Guid workflowId, string persistPath) @@ -673,7 +673,7 @@ public void PersistingWorkflow(Guid workflowId, string persistPath) } /// - /// ProxyJobRemoteJobAssociation (EventId: 0xb50b/46347) + /// ProxyJobRemoteJobAssociation (EventId: 0xb50b/46347). /// [EtwEvent(0xb50b)] public void ProxyJobRemoteJobAssociation(Guid proxyJobInstanceId, Guid containerParentJobInstanceId) @@ -682,7 +682,7 @@ public void ProxyJobRemoteJobAssociation(Guid proxyJobInstanceId, Guid container } /// - /// RemoveJobStarted (EventId: 0xb02c/45100) + /// RemoveJobStarted (EventId: 0xb02c/45100). /// [EtwEvent(0xb02c)] public void RemoveJobStarted(Guid jobId) @@ -691,7 +691,7 @@ public void RemoveJobStarted(Guid jobId) } /// - /// RunspaceAvailabilityChanged (EventId: 0xb022/45090) + /// RunspaceAvailabilityChanged (EventId: 0xb022/45090). /// [EtwEvent(0xb022)] public void RunspaceAvailabilityChanged(string runspaceId, string availability) @@ -700,7 +700,7 @@ public void RunspaceAvailabilityChanged(string runspaceId, string availability) } /// - /// RunspaceStateChanged (EventId: 0xb023/45091) + /// RunspaceStateChanged (EventId: 0xb023/45091). /// [EtwEvent(0xb023)] public void RunspaceStateChanged(string runspaceId, string newState, string oldState) @@ -709,7 +709,7 @@ public void RunspaceStateChanged(string runspaceId, string newState, string oldS } /// - /// TrackingGuidContainerParentJobCorrelation (EventId: 0xb505/46341) + /// TrackingGuidContainerParentJobCorrelation (EventId: 0xb505/46341). /// [EtwEvent(0xb505)] public void TrackingGuidContainerParentJobCorrelation(Guid trackingId, Guid containerParentJobInstanceId) @@ -718,7 +718,7 @@ public void TrackingGuidContainerParentJobCorrelation(Guid trackingId, Guid cont } /// - /// UnloadingWorkflow (EventId: 0xb039/45113) + /// UnloadingWorkflow (EventId: 0xb039/45113). /// [EtwEvent(0xb039)] public void UnloadingWorkflow(Guid workflowId) @@ -727,7 +727,7 @@ public void UnloadingWorkflow(Guid workflowId) } /// - /// WorkflowActivityExecutionFailed (EventId: 0xb021/45089) + /// WorkflowActivityExecutionFailed (EventId: 0xb021/45089). /// [EtwEvent(0xb021)] public void WorkflowActivityExecutionFailed(Guid workflowId, string activityName, string failureDescription) @@ -736,7 +736,7 @@ public void WorkflowActivityExecutionFailed(Guid workflowId, string activityName } /// - /// WorkflowActivityValidated (EventId: 0xb01f/45087) + /// WorkflowActivityValidated (EventId: 0xb01f/45087). /// [EtwEvent(0xb01f)] public void WorkflowActivityValidated(Guid workflowId, string activityDisplayName, string activityType) @@ -745,7 +745,7 @@ public void WorkflowActivityValidated(Guid workflowId, string activityDisplayNam } /// - /// WorkflowActivityValidationFailed (EventId: 0xb020/45088) + /// WorkflowActivityValidationFailed (EventId: 0xb020/45088). /// [EtwEvent(0xb020)] public void WorkflowActivityValidationFailed(Guid workflowId, string activityDisplayName, string activityType) @@ -754,7 +754,7 @@ public void WorkflowActivityValidationFailed(Guid workflowId, string activityDis } /// - /// WorkflowCleanupPerformed (EventId: 0xb028/45096) + /// WorkflowCleanupPerformed (EventId: 0xb028/45096). /// [EtwEvent(0xb028)] public void WorkflowCleanupPerformed(Guid workflowId) @@ -763,7 +763,7 @@ public void WorkflowCleanupPerformed(Guid workflowId) } /// - /// WorkflowDeletedFromDisk (EventId: 0xb02a/45098) + /// WorkflowDeletedFromDisk (EventId: 0xb02a/45098). /// [EtwEvent(0xb02a)] public void WorkflowDeletedFromDisk(Guid workflowId, string path) @@ -772,7 +772,7 @@ public void WorkflowDeletedFromDisk(Guid workflowId, string path) } /// - /// WorkflowEngineStarted (EventId: 0xb048/45128) + /// WorkflowEngineStarted (EventId: 0xb048/45128). /// [EtwEvent(0xb048)] public void WorkflowEngineStarted(string endpointName) @@ -781,7 +781,7 @@ public void WorkflowEngineStarted(string endpointName) } /// - /// WorkflowExecutionAborted (EventId: 0xb027/45095) + /// WorkflowExecutionAborted (EventId: 0xb027/45095). /// [EtwEvent(0xb027)] public void WorkflowExecutionAborted(Guid workflowId) @@ -790,7 +790,7 @@ public void WorkflowExecutionAborted(Guid workflowId) } /// - /// WorkflowExecutionCancelled (EventId: 0xb026/45094) + /// WorkflowExecutionCancelled (EventId: 0xb026/45094). /// [EtwEvent(0xb026)] public void WorkflowExecutionCancelled(Guid workflowId) @@ -799,7 +799,7 @@ public void WorkflowExecutionCancelled(Guid workflowId) } /// - /// WorkflowExecutionError (EventId: 0xb040/45120) + /// WorkflowExecutionError (EventId: 0xb040/45120). /// [EtwEvent(0xb040)] public void WorkflowExecutionError(Guid workflowId, string errorDescription) @@ -808,7 +808,7 @@ public void WorkflowExecutionError(Guid workflowId, string errorDescription) } /// - /// WorkflowExecutionFinished (EventId: 0xb036/45110) + /// WorkflowExecutionFinished (EventId: 0xb036/45110). /// [EtwEvent(0xb036)] public void WorkflowExecutionFinished(Guid workflowId) @@ -817,7 +817,7 @@ public void WorkflowExecutionFinished(Guid workflowId) } /// - /// WorkflowExecutionStarted (EventId: 0xb008/45064) + /// WorkflowExecutionStarted (EventId: 0xb008/45064). /// [EtwEvent(0xb008)] public void WorkflowExecutionStarted(Guid workflowId, string managedNodes) @@ -826,7 +826,7 @@ public void WorkflowExecutionStarted(Guid workflowId, string managedNodes) } /// - /// WorkflowJobCreated (EventId: 0xb030/45104) + /// WorkflowJobCreated (EventId: 0xb030/45104). /// [EtwEvent(0xb030)] public void WorkflowJobCreated(Guid parentJobId, Guid childJobId, Guid childWorkflowId) @@ -835,7 +835,7 @@ public void WorkflowJobCreated(Guid parentJobId, Guid childJobId, Guid childWork } /// - /// WorkflowLoadedForExecution (EventId: 0xb024/45092) + /// WorkflowLoadedForExecution (EventId: 0xb024/45092). /// [EtwEvent(0xb024)] public void WorkflowLoadedForExecution(Guid workflowId) @@ -844,7 +844,7 @@ public void WorkflowLoadedForExecution(Guid workflowId) } /// - /// WorkflowLoadedFromDisk (EventId: 0xb029/45097) + /// WorkflowLoadedFromDisk (EventId: 0xb029/45097). /// [EtwEvent(0xb029)] public void WorkflowLoadedFromDisk(Guid workflowId, string path) @@ -853,7 +853,7 @@ public void WorkflowLoadedFromDisk(Guid workflowId, string path) } /// - /// WorkflowManagerCheckpoint (EventId: 0xb049/45129) + /// WorkflowManagerCheckpoint (EventId: 0xb049/45129). /// [EtwEvent(0xb049)] public void WorkflowManagerCheckpoint(string checkpointPath, string configProviderId, string userName, string path) @@ -862,7 +862,7 @@ public void WorkflowManagerCheckpoint(string checkpointPath, string configProvid } /// - /// WorkflowPersisted (EventId: 0xb03e/45118) + /// WorkflowPersisted (EventId: 0xb03e/45118). /// [EtwEvent(0xb03e)] public void WorkflowPersisted(Guid workflowId) @@ -871,7 +871,7 @@ public void WorkflowPersisted(Guid workflowId) } /// - /// WorkflowPluginRequestedToShutdown (EventId: 0xb010/45072) + /// WorkflowPluginRequestedToShutdown (EventId: 0xb010/45072). /// [EtwEvent(0xb010)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] @@ -881,7 +881,7 @@ public void WorkflowPluginRequestedToShutdown(string endpointName) } /// - /// WorkflowPluginRestarted (EventId: 0xb011/45073) + /// WorkflowPluginRestarted (EventId: 0xb011/45073). /// [EtwEvent(0xb011)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] @@ -891,7 +891,7 @@ public void WorkflowPluginRestarted(string endpointName) } /// - /// WorkflowPluginStarted (EventId: 0xb007/45063) + /// WorkflowPluginStarted (EventId: 0xb007/45063). /// [EtwEvent(0xb007)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] @@ -901,7 +901,7 @@ public void WorkflowPluginStarted(string endpointName, string user, string hosti } /// - /// WorkflowQuotaViolated (EventId: 0xb013/45075) + /// WorkflowQuotaViolated (EventId: 0xb013/45075). /// [EtwEvent(0xb013)] public void WorkflowQuotaViolated(string endpointName, string configName, string allowedValue, string valueInQuestion) @@ -910,7 +910,7 @@ public void WorkflowQuotaViolated(string endpointName, string configName, string } /// - /// WorkflowResumed (EventId: 0xb014/45076) + /// WorkflowResumed (EventId: 0xb014/45076). /// [EtwEvent(0xb014)] public void WorkflowResumed(Guid workflowId) @@ -919,7 +919,7 @@ public void WorkflowResumed(Guid workflowId) } /// - /// WorkflowResuming (EventId: 0xb012/45074) + /// WorkflowResuming (EventId: 0xb012/45074). /// [EtwEvent(0xb012)] public void WorkflowResuming(Guid workflowId) @@ -928,7 +928,7 @@ public void WorkflowResuming(Guid workflowId) } /// - /// WorkflowRunspacePoolCreated (EventId: 0xb016/45078) + /// WorkflowRunspacePoolCreated (EventId: 0xb016/45078). /// [EtwEvent(0xb016)] public void WorkflowRunspacePoolCreated(Guid workflowId, string managedNode) @@ -937,7 +937,7 @@ public void WorkflowRunspacePoolCreated(Guid workflowId, string managedNode) } /// - /// WorkflowStateChanged (EventId: 0xb009/45065) + /// WorkflowStateChanged (EventId: 0xb009/45065). /// [EtwEvent(0xb009)] public void WorkflowStateChanged(Guid workflowId, string newState, string oldState) @@ -946,7 +946,7 @@ public void WorkflowStateChanged(Guid workflowId, string newState, string oldSta } /// - /// WorkflowUnloaded (EventId: 0xb025/45093) + /// WorkflowUnloaded (EventId: 0xb025/45093). /// [EtwEvent(0xb025)] public void WorkflowUnloaded(Guid workflowId) @@ -955,7 +955,7 @@ public void WorkflowUnloaded(Guid workflowId) } /// - /// WorkflowValidationError (EventId: 0xb01e/45086) + /// WorkflowValidationError (EventId: 0xb01e/45086). /// [EtwEvent(0xb01e)] public void WorkflowValidationError(Guid workflowId) @@ -964,7 +964,7 @@ public void WorkflowValidationError(Guid workflowId) } /// - /// WorkflowValidationFinished (EventId: 0xb01d/45085) + /// WorkflowValidationFinished (EventId: 0xb01d/45085). /// [EtwEvent(0xb01d)] public void WorkflowValidationFinished(Guid workflowId) @@ -973,7 +973,7 @@ public void WorkflowValidationFinished(Guid workflowId) } /// - /// WorkflowValidationStarted (EventId: 0xb01c/45084) + /// WorkflowValidationStarted (EventId: 0xb01c/45084). /// [EtwEvent(0xb01c)] public void WorkflowValidationStarted(Guid workflowId) @@ -982,6 +982,7 @@ public void WorkflowValidationStarted(Guid workflowId) } } } + // This code was generated on 02/01/2012 19:52:32 #endif diff --git a/test/tools/WebListener/Startup.cs b/test/tools/WebListener/Startup.cs index 4cf2685cadc..6a801b88708 100644 --- a/test/tools/WebListener/Startup.cs +++ b/test/tools/WebListener/Startup.cs @@ -26,10 +26,11 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddMvc(options => { - options.EnableEndpointRouting = false; - }) - .AddNewtonsoftJson(); + services.AddMvc(options => + { + options.EnableEndpointRouting = false; + }) + .AddNewtonsoftJson(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -51,37 +52,37 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) routes.MapRoute( name: "resume_bytes", template: "Resume/Bytes/{NumberBytes?}", - defaults: new {controller = "Resume", action = "Bytes"}); + defaults: new { controller = "Resume", action = "Bytes" }); routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); routes.MapRoute( name: "redirect", template: "Redirect/{count?}", - defaults: new {controller = "Redirect", action = "Index"}); + defaults: new { controller = "Redirect", action = "Index" }); routes.MapRoute( name: "delay", template: "Delay/{seconds?}", - defaults: new {controller = "Delay", action = "Index"}); + defaults: new { controller = "Delay", action = "Index" }); routes.MapRoute( name: "post", template: "Post", - defaults: new {controller = "Get", action = "Index"}, + defaults: new { controller = "Get", action = "Index" }, constraints: new RouteValueDictionary(new { httpMethod = new HttpMethodRouteConstraint("POST") })); routes.MapRoute( name: "put", template: "Put", - defaults: new {controller = "Get", action = "Index"}, + defaults: new { controller = "Get", action = "Index" }, constraints: new RouteValueDictionary(new { httpMethod = new HttpMethodRouteConstraint("PUT") })); routes.MapRoute( name: "patch", template: "Patch", - defaults: new {controller = "Get", action = "Index"}, + defaults: new { controller = "Get", action = "Index" }, constraints: new RouteValueDictionary(new { httpMethod = new HttpMethodRouteConstraint("PATCH") })); routes.MapRoute( name: "delete", template: "Delete", - defaults: new {controller = "Get", action = "Index"}, + defaults: new { controller = "Get", action = "Index" }, constraints: new RouteValueDictionary(new { httpMethod = new HttpMethodRouteConstraint("DELETE") })); routes.MapRoute( name: "retry", From 343ebe0317c5263bc40193ee8ac4bb93ac5b1b45 Mon Sep 17 00:00:00 2001 From: Ilya Date: Mon, 3 Jun 2019 10:56:51 +0500 Subject: [PATCH 2/2] Replace for with while --- src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs index 56fc731baf2..5e45ba26a59 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs @@ -1178,7 +1178,7 @@ private static void BuildEdgeTypeInfo( firstRightLeadingRow = r; } - for (; ;) + while (true) { r++; if (r > contentsRegion.Bottom)