spelling: debug, tracer, ...

This commit is contained in:
Josh Soref
2016-08-29 18:06:24 +00:00
parent d3f4eac6c1
commit 2f980faac5
8 changed files with 21 additions and 21 deletions
@@ -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);
@@ -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());
}
}
}
@@ -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<AuthenticationLevel>("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));
}
@@ -987,7 +987,7 @@ namespace Microsoft.PowerShell.Workflow
/// <returns>Returns the collection of workflow instances.</returns>
internal IEnumerable<Job2> GetJobs(WorkflowFilterTypes type, Dictionary<string, object> 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);
@@ -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
@@ -2969,7 +2969,7 @@ namespace System.Management.Automation
}
/// <summary>
/// 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.
/// </summary>
private static bool PropertyAlreadyPresent(List<PropertyInfo> 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<Type> 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<Type> inferenceCandidates = _typeParameterIndexToSetOfInferenceCandidates[parameterType.GenericParameterPosition];
@@ -4670,7 +4670,7 @@ namespace System.Management.Automation
providerPath,
context);
s_tracer.WriteLine("sourcIsContainer = {0}", sourceIsContainer);
s_tracer.WriteLine("sourceIsContainer = {0}", sourceIsContainer);
if (sourceIsContainer)
{
@@ -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);
}
}