From 2f980faac526d65b47bdb55b214bac8f8fa018c2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 29 Aug 2016 18:06:24 +0000 Subject: [PATCH] spelling: debug, tracer, ... --- .../cimSupport/cmdletization/cim/cimChildJobBase.cs | 2 +- .../ServiceCore/WorkflowCore/ConnectionManager.cs | 6 +++--- .../ServiceCore/WorkflowCore/PSActivityBase.cs | 6 +++--- .../ServiceCore/WorkflowCore/WorkflowManager.cs | 6 +++--- .../engine/CommandSearcher.cs | 2 +- .../engine/CoreAdapter.cs | 6 +++--- .../engine/SessionStateContainer.cs | 2 +- .../remoting/fanin/InitialSessionStateProvider.cs | 12 ++++++------ 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs index 8d803b1800..916ec790a1 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs @@ -924,7 +924,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim Dbg.Assert( (this.JobContext.ShouldProcessOptimization != MshCommandRuntime.ShouldProcessPossibleOptimization.AutoYes_CanSkipShouldProcessCall) || (this.JobContext.CmdletInvocationContext.CmdletDefinitionContext.ClientSideShouldProcess), - "MI layer should not call us when AutoYes_CanSkipShouldProcesCall optimization is in effect"); + "MI layer should not call us when AutoYes_CanSkipShouldProcessCall optimization is in effect"); Exception exceptionThrownOnCmdletThread; ShouldProcessReason shouldProcessReason; bool shouldProcessResponse = this.ShouldProcess(verboseDescription, verboseWarning, caption, out shouldProcessReason, out exceptionThrownOnCmdletThread); diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs index 923b167bc6..15c98e0433 100644 --- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs +++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs @@ -212,7 +212,7 @@ namespace Microsoft.PowerShell.Workflow } catch (System.Management.Automation.RuntimeException) { - _tracer.WriteMessage("PSW Conn: Disconnected Remote Runspace is not avialable. Runspace Instance Id: " + runspaceId.ToString()); + _tracer.WriteMessage("PSW Conn: Disconnected Remote Runspace is not available. Runspace Instance Id: " + runspaceId.ToString()); } if (runspaces != null) @@ -258,7 +258,7 @@ namespace Microsoft.PowerShell.Workflow } catch (PSInvalidOperationException) { - _tracer.WriteMessage("PSW Conn: Disconnected PowerShell is not avialable. Runspace Instance Id: " + foundRunspace.InstanceId.ToString()); + _tracer.WriteMessage("PSW Conn: Disconnected PowerShell is not available. Runspace Instance Id: " + foundRunspace.InstanceId.ToString()); } finally { @@ -280,7 +280,7 @@ namespace Microsoft.PowerShell.Workflow // Runspace.Close can throw exceptions when Server process has exited or runspace is invalid. // Ignoring all exceptions. // - _tracer.WriteMessage("PSW Conn: Disconnected PowerShell is not avialable. Runspace Instance Id: " + foundRunspace.InstanceId.ToString()); + _tracer.WriteMessage("PSW Conn: Disconnected PowerShell is not available. Runspace Instance Id: " + foundRunspace.InstanceId.ToString()); } } } diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs index 0387a164e0..e34bf658e0 100644 --- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs +++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs @@ -2849,7 +2849,7 @@ namespace Microsoft.PowerShell.Activities { System.Management.Automation.PowerShell commandToRun = implementationContext.PowerShellInstance; actionTracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "Begining action to run command {0}.", commandToRun)); + "Beginning action to run command {0}.", commandToRun)); if (CheckForCancel(psActivityContext)) return; @@ -4322,7 +4322,7 @@ namespace Microsoft.PowerShell.Activities catch (Exception) { // Exception setting variables, try using proxy - tracer.WriteMessage("Setting varibles in remote runspace failed using script, trying with proxy"); + tracer.WriteMessage("Setting variables in remote runspace failed using script, trying with proxy"); try { @@ -6130,7 +6130,7 @@ namespace Microsoft.PowerShell.Activities var authLevel = GetUbiquitousParameter("PSAuthenticationLevel", parameterDefaults); command.AddParameter("Authentication", authLevel); Tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "PowerShell activity ID={0}: Setting parameter {1} to {2} from ubiquitious parameters.", + "PowerShell activity ID={0}: Setting parameter {1} to {2} from ubiquitous parameters.", context.ActivityInstanceId, "AuthenticationLevel", authLevel)); } diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowManager.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowManager.cs index 99b3b0732f..c13db8b8f9 100644 --- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowManager.cs +++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowManager.cs @@ -987,7 +987,7 @@ namespace Microsoft.PowerShell.Workflow /// Returns the collection of workflow instances. internal IEnumerable GetJobs(WorkflowFilterTypes type, Dictionary filters) { - Tracer.WriteMessage(Facility + "Geting workflow instances based on filters"); + Tracer.WriteMessage(Facility + "Getting workflow instances based on filters"); return GetJobs(_wfJobTable.Values, type, filters); } @@ -1315,7 +1315,7 @@ namespace Microsoft.PowerShell.Workflow } catch (ObjectDisposedException) { - Tracer.WriteMessage(Facility, "RemoveJob", job.PSWorkflowInstance.Id, "Worklfow Job is already disposed. so removing it."); + Tracer.WriteMessage(Facility, "RemoveJob", job.PSWorkflowInstance.Id, "Workflow Job is already disposed. so removing it."); } } } @@ -1344,7 +1344,7 @@ namespace Microsoft.PowerShell.Workflow lock (lockObjects.GetLockObject(instanceId)) { - Tracer.WriteMessage(Facility + "Forgeting job instance with id: " + instanceId); + Tracer.WriteMessage(Facility + "Forgetting job instance with id: " + instanceId); PSWorkflowJob job = GetJob(instanceId); diff --git a/src/System.Management.Automation/engine/CommandSearcher.cs b/src/System.Management.Automation/engine/CommandSearcher.cs index 0e48d329dd..6171d64062 100644 --- a/src/System.Management.Automation/engine/CommandSearcher.cs +++ b/src/System.Management.Automation/engine/CommandSearcher.cs @@ -1223,7 +1223,7 @@ namespace System.Management.Automation resolvedPath = null; CommandDiscovery.discoveryTracer.TraceError( - "The relative path with wildcard resolved to mutiple paths. {0}", + "The relative path with wildcard resolved to multiple paths. {0}", path); } else diff --git a/src/System.Management.Automation/engine/CoreAdapter.cs b/src/System.Management.Automation/engine/CoreAdapter.cs index 22383e526e..92664df132 100644 --- a/src/System.Management.Automation/engine/CoreAdapter.cs +++ b/src/System.Management.Automation/engine/CoreAdapter.cs @@ -2969,7 +2969,7 @@ namespace System.Management.Automation } /// - /// This method is necessary becausean overridden property in a specific class derived from a generic one will + /// This method is necessary because an overridden property in a specific class derived from a generic one will /// appear twice. The second time, it should be ignored. /// private static bool PropertyAlreadyPresent(List previousProperties, PropertyInfo property) @@ -5187,7 +5187,7 @@ namespace System.Management.Automation Dbg.Assert(typeParameter != null, "Caller should verify typeParameter != null"); Dbg.Assert( _typeParametersOfTheMethod.Contains(typeParameter), - "Caller should verify that typeParameter is actuall a generic type parameter of the method"); + "Caller should verify that typeParameter is actually a generic type parameter of the method"); #endif ICollection inferenceCandidates = @@ -5284,7 +5284,7 @@ namespace System.Management.Automation #if DEBUG Dbg.Assert( _typeParametersOfTheMethod.Contains(parameterType), - "Only uninstantinated generic type parameters encountered in real life, should be the ones coming from the method"); + "Only uninstantiated generic type parameters encountered in real life, should be the ones coming from the method"); #endif HashSet inferenceCandidates = _typeParameterIndexToSetOfInferenceCandidates[parameterType.GenericParameterPosition]; diff --git a/src/System.Management.Automation/engine/SessionStateContainer.cs b/src/System.Management.Automation/engine/SessionStateContainer.cs index b109d54818..8a7252b8d4 100644 --- a/src/System.Management.Automation/engine/SessionStateContainer.cs +++ b/src/System.Management.Automation/engine/SessionStateContainer.cs @@ -4670,7 +4670,7 @@ namespace System.Management.Automation providerPath, context); - s_tracer.WriteLine("sourcIsContainer = {0}", sourceIsContainer); + s_tracer.WriteLine("sourceIsContainer = {0}", sourceIsContainer); if (sourceIsContainer) { diff --git a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs index 494827dc9b..38e34a697b 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs @@ -624,32 +624,32 @@ namespace System.Management.Automation.Remoting } catch (ArgumentException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } catch (PathTooLongException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } catch (FileNotFoundException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } catch (IOException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } catch (System.Security.SecurityException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } catch (UnauthorizedAccessException e) { - s_tracer.TraceWarning("Not able to change curent working directory to {0}: {1}", + s_tracer.TraceWarning("Not able to change current working directory to {0}: {1}", applicationBase, e.Message); } }