diff --git a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs index 34e2ec8db6..50e2739c78 100644 --- a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs +++ b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs @@ -32,7 +32,7 @@ namespace System.Management.Automation.Runspaces /// Constructor /// /// - /// Instace Id of the object creating this instance + /// Instance Id of the object creating this instance /// /// /// A AsyncCallback to call once the async operation completes. diff --git a/src/System.Management.Automation/engine/hostifaces/Command.cs b/src/System.Management.Automation/engine/hostifaces/Command.cs index 0b86e949d9..93d725f2fe 100644 --- a/src/System.Management.Automation/engine/hostifaces/Command.cs +++ b/src/System.Management.Automation/engine/hostifaces/Command.cs @@ -272,7 +272,7 @@ namespace System.Management.Automation.Runspaces internal PipelineResultTypes[] MergeInstructions { get; set; } = new PipelineResultTypes[MaxMergeType]; /// - /// Merges this commands resutls + /// Merges this commands results /// /// /// @@ -874,7 +874,7 @@ namespace System.Management.Automation.Runspaces } /// - /// Gets the string represenation of the command collection to be used for history. + /// Gets the string representation of the command collection to be used for history. /// /// /// string representing the command(s) diff --git a/src/System.Management.Automation/engine/hostifaces/Connection.cs b/src/System.Management.Automation/engine/hostifaces/Connection.cs index 5a972e73b3..2c086626dc 100644 --- a/src/System.Management.Automation/engine/hostifaces/Connection.cs +++ b/src/System.Management.Automation/engine/hostifaces/Connection.cs @@ -419,7 +419,7 @@ namespace System.Management.Automation.Runspaces public enum RunspaceCapability { /// - /// No additional capabilites beyond a default runspace. + /// No additional capabilities beyond a default runspace. /// Default = 0x0, @@ -674,7 +674,7 @@ namespace System.Management.Automation.Runspaces } /// - /// Get unqiue id for this instance of runspace. It is primarily used + /// Get unique id for this instance of runspace. It is primarily used /// for logging purposes /// public Guid InstanceId { get; @@ -1394,7 +1394,7 @@ namespace System.Management.Automation.Runspaces /// /// A valid command string /// - /// A pipline pre-filled with a object for specified command parameter. + /// A pipeline pre-filled with a object for specified command parameter. /// /// /// command is null @@ -1407,7 +1407,7 @@ namespace System.Management.Automation.Runspaces /// A valid command string /// if true command is added to history /// - /// A pipline pre-filled with a object for specified command parameter. + /// A pipeline pre-filled with a object for specified command parameter. /// /// /// command is null @@ -1430,7 +1430,7 @@ namespace System.Management.Automation.Runspaces /// A valid command string /// if true command is added to history /// - /// A pipline pre-filled with Command specified in commandString. + /// A pipeline pre-filled with Command specified in commandString. /// /// /// command is null diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs index 27992a269b..76443a472e 100644 --- a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs +++ b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs @@ -279,7 +279,7 @@ namespace System.Management.Automation.Runspaces OpenHelper(syncCall); if (etwEnabled) RunspaceEventSource.Log.OpenRunspaceStop(); - // We report startup telemtry when opening the runspace - because this is the first time + // We report startup telementry when opening the runspace - because this is the first time // we are really using PowerShell. This isn't the cleanest place though, because // sometimes there are many runspaces created - the callee ensures telemetry is only // reported once. Note that if the host implements IHostProvidesTelemetryData, we rely @@ -541,11 +541,11 @@ namespace System.Management.Automation.Runspaces } /// - /// Createa a pipeline froma command string + /// Create a pipeline from a command string /// /// A valid command string /// - /// A pipline pre-filled with Commands specified in commandString. + /// A pipeline pre-filled with Commands specified in commandString. /// /// /// command is null @@ -566,7 +566,7 @@ namespace System.Management.Automation.Runspaces /// A valid command string /// if true command is added to history /// - /// A pipline pre-filled with Commands specified in commandString. + /// A pipeline pre-filled with Commands specified in commandString. /// /// /// command is null @@ -600,7 +600,7 @@ namespace System.Management.Automation.Runspaces /// A valid command string /// if true command is added to history /// - /// A pipline pre-filled with Commands specified in commandString. + /// A pipeline pre-filled with Commands specified in commandString. /// /// /// command is null @@ -623,7 +623,7 @@ namespace System.Management.Automation.Runspaces /// if true command is added to history /// True for nested pipeline /// - /// A pipline pre-filled with Commands specified in commandString. + /// A pipeline pre-filled with Commands specified in commandString. /// protected abstract Pipeline CoreCreatePipeline(string command, bool addToHistory, bool isNested); @@ -866,7 +866,7 @@ namespace System.Management.Automation.Runspaces throw e; } - //Add the pipeline to list of Excuting pipeline. + //Add the pipeline to list of Executing pipeline. //Note:_runningPipelines is always accessed with the lock so //there is no need to create a synchronized version of list RunningPipelines.Add(pipeline); @@ -892,7 +892,7 @@ namespace System.Management.Automation.Runspaces Dbg.Assert(RunspaceState != RunspaceState.BeforeOpen, "Runspace should not be before open when pipeline is running"); - //Remove the pipeline to list of Excuting pipeline. + //Remove the pipeline to list of Executing pipeline. //Note:_runningPipelines is always accessed with the lock so //there is no need to create a synchronized version of list RunningPipelines.Remove(pipeline); @@ -1529,7 +1529,7 @@ namespace System.Management.Automation.Runspaces /// /// Protected methods to be implemented by derived class. - /// This does the acutal work of setting variable. + /// This does the actual work of setting variable. /// /// Name of the variable to set /// The value to set it to diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs index c40b6c674e..dae7f5d6d6 100644 --- a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs +++ b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs @@ -480,7 +480,7 @@ namespace System.Management.Automation.Runspaces /// /// Creates a RunspacePool - /// on the specified remote runspace compuer. + /// on the specified remote runspace computer. /// /// limits the number of Runspaces that can exist in this /// pool. The minimum pool size is set to @@ -498,10 +498,10 @@ namespace System.Management.Automation.Runspaces /// The TypeTable to use while deserializing/serializing remote objects. /// TypeTable has the following information used by serializer: /// 1. SerializationMethod - /// 2. SerailizationDepth + /// 2. SerializationDepth /// 3. SpecificSerializationProperties - /// TypeTable has the following inforamtion used by deserializer: - /// 1. TargetTypeForDeserializaiton + /// TypeTable has the following information used by deserializer: + /// 1. TargetTypeForDeserialization /// 2. TypeConverter /// /// If is null no custom serialization/deserialization @@ -527,7 +527,7 @@ namespace System.Management.Automation.Runspaces /// /// Creates a RunspacePool - /// on the specified remote runspace compuer. + /// on the specified remote runspace computer. /// /// limits the number of Runspaces that can exist in this /// pool. The minimum pool size is set to @@ -545,10 +545,10 @@ namespace System.Management.Automation.Runspaces /// The TypeTable to use while deserializing/serializing remote objects. /// TypeTable has the following information used by serializer: /// 1. SerializationMethod - /// 2. SerailizationDepth + /// 2. SerializationDepth /// 3. SpecificSerializationProperties - /// TypeTable has the following inforamtion used by deserializer: - /// 1. TargetTypeForDeserializaiton + /// TypeTable has the following information used by deserializer: + /// 1. TargetTypeForDeserialization /// 2. TypeConverter /// /// If is null no custom serialization/deserialization @@ -600,10 +600,10 @@ namespace System.Management.Automation.Runspaces /// The TypeTable to use while deserializing/serializing remote objects. /// TypeTable has the following information used by serializer: /// 1. SerializationMethod - /// 2. SerailizationDepth + /// 2. SerializationDepth /// 3. SpecificSerializationProperties - /// TypeTable has the following inforamtion used by deserializer: - /// 1. TargetTypeForDeserializaiton + /// TypeTable has the following information used by deserializer: + /// 1. TargetTypeForDeserialization /// 2. TypeConverter /// /// @@ -621,10 +621,10 @@ namespace System.Management.Automation.Runspaces /// The TypeTable to use while deserializing/serializing remote objects. /// TypeTable has the following information used by serializer: /// 1. SerializationMethod - /// 2. SerailizationDepth + /// 2. SerializationDepth /// 3. SpecificSerializationProperties - /// TypeTable has the following inforamtion used by deserializer: - /// 1. TargetTypeForDeserializaiton + /// TypeTable has the following information used by deserializer: + /// 1. TargetTypeForDeserialization /// 2. TypeConverter /// /// @@ -647,10 +647,10 @@ namespace System.Management.Automation.Runspaces /// The TypeTable to use while deserializing/serializing remote objects. /// TypeTable has the following information used by serializer: /// 1. SerializationMethod - /// 2. SerailizationDepth + /// 2. SerializationDepth /// 3. SpecificSerializationProperties - /// TypeTable has the following inforamtion used by deserializer: - /// 1. TargetTypeForDeserializaiton + /// TypeTable has the following information used by deserializer: + /// 1. TargetTypeForDeserialization /// 2. TypeConverter /// /// diff --git a/src/System.Management.Automation/engine/hostifaces/History.cs b/src/System.Management.Automation/engine/hostifaces/History.cs index a4bbd0bcd4..37934f19e6 100644 --- a/src/System.Management.Automation/engine/hostifaces/History.cs +++ b/src/System.Management.Automation/engine/hostifaces/History.cs @@ -86,7 +86,7 @@ namespace Microsoft.PowerShell.Commands } /// - /// Execution status of assoicated pipeline + /// Execution status of associated pipeline /// /// public PipelineState ExecutionStatus @@ -245,7 +245,7 @@ namespace Microsoft.PowerShell.Commands #region ICloneable Members /// - /// Retuns a clone of this object + /// Returns a clone of this object /// /// public HistoryInfo Clone() @@ -326,7 +326,7 @@ namespace Microsoft.PowerShell.Commands } /// - /// Udpate the history entry corresponding to id. + /// Update the history entry corresponding to id. /// /// id of history entry to be updated /// status to be updated @@ -497,7 +497,7 @@ namespace Microsoft.PowerShell.Commands long index, SmallestID = 0; //if we change the defaulthistory size and when no of entries exceed the size, then //we need to get the smallest entry in the buffer when we want to clear the oldest entry - //eg if size is 5 and then the enrties can be 7,6,1,2,3 + //eg if size is 5 and then the entries can be 7,6,1,2,3 if (_capacity != DefaultHistorySize) SmallestID = SmallestIDinBuffer(); if (!newest.IsPresent) @@ -585,7 +585,7 @@ namespace Microsoft.PowerShell.Commands } List cmdlist = new List(); long SmallestID = 1; - //if buffersize is changes,Get the smallest entry thts not cleared in the buffer + //if buffersize is changes,Get the smallest entry that's not cleared in the buffer if (_capacity != DefaultHistorySize) SmallestID = SmallestIDinBuffer(); if (count != 0) @@ -613,7 +613,7 @@ namespace Microsoft.PowerShell.Commands long id = _countEntriesAdded; for (long i = 0; i <= count - 1;) { - //if buffersize is changed,we have to loop from max enttry to min entry thats not cleraed + //if buffersize is changed,we have to loop from max entry to min entry thats not cleared if (_capacity != DefaultHistorySize) { if (_countEntriesAdded > _capacity) @@ -1056,7 +1056,7 @@ namespace Microsoft.PowerShell.Commands } else { - // The defualt value for _count is the size of the history buffer. + // The default value for _count is the size of the history buffer. if (!_countParameterSpecified) { _count = history.Buffercapacity(); @@ -1508,7 +1508,7 @@ namespace Microsoft.PowerShell.Commands /// mshObject to be converted to HistoryInfo. /// /// - /// HistoryInfo object if coversion is successful else null. + /// HistoryInfo object if conversion is successful else null. /// #pragma warning disable 0162 private @@ -1991,7 +1991,7 @@ namespace Microsoft.PowerShell.Commands /// - /// Clears the session history based on the input parametera + /// Clears the session history based on the input parameter /// id of the entry to be cleared /// count of entries to be cleared /// cmdline string to be cleared diff --git a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs index 524ff7172c..31fb225eff 100644 --- a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs +++ b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs @@ -79,8 +79,8 @@ namespace System.Management.Automation /// /// The profile file name for all users and all hosts. /// The profile file name for all users and current host. - /// The profile file name for cuurrent user and all hosts. - /// The profile name for cuurrent user and current host. + /// The profile file name for current user and all hosts. + /// The profile name for current user and current host. /// A PSObject whose base object is currentUserCurrentHost and with notes for the other 4 parameters. internal static PSObject GetDollarProfile(string allUsersAllHosts, string allUsersCurrentHost, string currentUserAllHosts, string currentUserCurrentHost) { diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs index 705f87b7c5..27c054c7e0 100644 --- a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs @@ -128,7 +128,7 @@ namespace System.Management.Automation.Internal.Host /// /// /// - /// when the external host's InstaceId is a zero Guid. + /// when the external host's InstanceId is a zero Guid. /// /// public override System.Guid InstanceId diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs index 4a0ff4fa82..7625a3f1a8 100644 --- a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs @@ -424,7 +424,7 @@ namespace System.Management.Automation.Internal.Host /// /// /// - /// If the debug preference is not a valid ActionPrefernce value. + /// If the debug preference is not a valid ActionPreference value. /// /// @@ -482,11 +482,11 @@ namespace System.Management.Automation.Internal.Host /// /// /// Buffers to which Debug, Verbose, Warning, Progress, Information messages - /// will be writtern to. + /// will be written to. /// /// /// This method is not thread safe. Caller should make sure of the - /// assosciated risks. + /// associated risks. /// internal void SetInformationalMessageBuffers(PSInformationalBuffers informationalBuffers) { @@ -910,7 +910,7 @@ namespace System.Management.Automation.Internal.Host /// Presents a dialog allowing the user to choose options from a set of options. /// /// - /// Caption to preceed or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" + /// Caption to precede or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" /// /// /// A message that describes what the choice is for. diff --git a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs index 77a245ba82..32cc938deb 100644 --- a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs +++ b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs @@ -529,7 +529,7 @@ namespace System.Management.Automation.Runspaces } else { - // For wahtever reason, cache is corrupted. Hence override the cache content. + // For whatever reason, cache is corrupted. Hence override the cache content. if (enable) { debugPreferenceCache = new Hashtable(); @@ -604,7 +604,7 @@ namespace System.Management.Automation.Runspaces /// Open the runspace /// /// - /// paramter which control if Open is done synchronously or asynchronously + /// parameter which control if Open is done synchronously or asynchronously /// protected override void OpenHelper(bool syncCall) { @@ -796,7 +796,7 @@ namespace System.Management.Automation.Runspaces /// Returns the thread that must be used to execute pipelines when CreateThreadOptions is ReuseThread /// /// - /// The pipeline calls this function after ensuring there is a single thread in the pipeline, so no locking is neccesary + /// The pipeline calls this function after ensuring there is a single thread in the pipeline, so no locking is necessary /// internal PipelineThread GetPipelineThread() { diff --git a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs index 468734b335..64719a124a 100644 --- a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs +++ b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs @@ -170,7 +170,7 @@ namespace System.Management.Automation.Runspaces } else { - apartmentState = this.LocalRunspace.ApartmentState; // use the Runspace apartmet state + apartmentState = this.LocalRunspace.ApartmentState; // use the Runspace apartment state } if (apartmentState != ApartmentState.Unknown) @@ -821,7 +821,7 @@ namespace System.Management.Automation.Runspaces private PipelineStopper _stopper; /// - /// Gets PipelineStopper object which maitains stack of PipelineProcessor + /// Gets PipelineStopper object which maintains stack of PipelineProcessor /// for this pipeline /// /// @@ -1081,7 +1081,7 @@ namespace System.Management.Automation.Runspaces internal void AddHistoryEntryFromAddHistoryCmdlet() { - //This method can be called by mulitple times during a single + //This method can be called by multiple times during a single //pipeline execution. For ex: a script can execute add-history //command multiple times. However we should add entry only //once. @@ -1129,7 +1129,7 @@ namespace System.Management.Automation.Runspaces /// /// /// ExecutionContext, if it available in TLS - /// Null, if ExecutionContext is not availalbe in TLS + /// Null, if ExecutionContext is not available in TLS /// internal static System.Management.Automation.ExecutionContext GetExecutionContextFromTLS() { @@ -1437,7 +1437,7 @@ namespace System.Management.Automation.Runspaces { _stack.Peek().ExecutionFailed = true; } - // If this is the last pipeline processor on the stack, then propigate it's execution status + // If this is the last pipeline processor on the stack, then propagate it's execution status if (_stack.Count == 1 && _localPipeline != null) { _localPipeline.SetHadErrors(oldPipe.ExecutionFailed); @@ -1460,7 +1460,7 @@ namespace System.Management.Automation.Runspaces copyStack = _stack.ToArray(); } - // Propigate error from the toplevel operation through to enclosing the LocalPipeline. + // Propagate error from the toplevel operation through to enclosing the LocalPipeline. if (copyStack.Length > 0) { PipelineProcessor topLevel = copyStack[copyStack.Length - 1]; diff --git a/src/System.Management.Automation/engine/hostifaces/MshHost.cs b/src/System.Management.Automation/engine/hostifaces/MshHost.cs index d7ac7bae09..1202265d5a 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHost.cs @@ -238,9 +238,9 @@ namespace System.Management.Automation.Host /// If the UI property returns null, the engine should not call this method. /// /// - /// + /// evaluates other commands. It does not create a truly new engine instance with new session state.--> /// /// /// @@ -258,7 +258,7 @@ namespace System.Management.Automation.Host /// /// /// - /// Typicalled called by the engine in response to some user action that resumes a suspended pipeline, such as with the + /// Typically called by the engine in response to some user action that resumes a suspended pipeline, such as with the /// 'continue-command' intrinsic cmdlet. Before calling this method, the engine should clear out the loop-specific /// variables that were set when the loop was created. /// @@ -291,7 +291,7 @@ namespace System.Management.Automation.Host /// /// If the host is using an in-process Runspace, then the BaseObject property can be a non-null value a live object. /// No guarantees are made as to the app domain or thread that the BaseObject is accessed if it is accessed in the - /// runspace. No guarantees of threadsafety or re-entrancy are made. The object set in the BaseObject property of + /// runspace. No guarantees of threadsafety or reentrancy are made. The object set in the BaseObject property of /// the value returned by this method is responsible for ensuring its own threadsafety and re-entrance safety. /// Note that thread(s) accessing that object may not necessarily be the same from one access to the next. /// @@ -364,7 +364,7 @@ namespace System.Management.Automation.Host /// /// Used by hosting applications to notify PowerShell engine that it is /// being hosted in a console based application and the Pipeline execution - /// thread should call SetThreadUILanguage(0). This propery is currently + /// thread should call SetThreadUILanguage(0). This property is currently /// used by ConsoleHost only and in future releases we may consider /// exposing this publicly. /// diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs index 3fb2756fd6..0c8deefd63 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs @@ -880,7 +880,7 @@ namespace System.Management.Automation.Host /// /// - /// Gets and sets the bottom of the rectanngle + /// Gets and sets the bottom of the rectangle /// /// @@ -909,7 +909,7 @@ namespace System.Management.Automation.Host /// /// /// - /// The bottom of the rectanngle + /// The bottom of the rectangle /// /// /// @@ -2145,7 +2145,7 @@ namespace System.Management.Automation.Host /// equal to the largest number of cells a string in takes. The /// foreground and background colors of the cells are initialized to /// and , respectively. - /// The resuling array is suitable for use with + /// The resulting array is suitable for use with /// and . /// /// diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs index 67b844ba12..29a9f4e49d 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs @@ -237,7 +237,7 @@ namespace System.Management.Automation.Host // // Ideally, this would be associated with the host instance, but remoting recycles host instances // for each command that gets invoked (so that it can keep track of the order of commands and their - // output.) Therefore, we store this transcripton data in the runspace. However, the + // output.) Therefore, we store this transcription data in the runspace. However, the // Runspace.DefaultRunspace property isn't always available (i.e.: when the pipeline is being set up), // so we have to cache it the first time it becomes available. private TranscriptionData TranscriptionData @@ -721,7 +721,7 @@ namespace System.Management.Automation.Host /// Constructs a 'dialog' where the user is presented with a number of fields for which to supply values. /// /// - /// Caption to preceed or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" + /// Caption to precede or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" /// /// /// A text description of the set of fields to be prompt. @@ -733,7 +733,7 @@ namespace System.Management.Automation.Host /// A Dictionary object with results of prompting. The keys are the field names from the FieldDescriptions, the values /// are objects representing the values of the corresponding fields as collected from the user. To the extent possible, /// the host should return values of the type(s) identified in the FieldDescription. When that is not possible (for - /// example, the type is not avaiable to the host), the host should return the value as a string. + /// example, the type is not available to the host), the host should return the value as a string. /// /// /// @@ -815,7 +815,7 @@ namespace System.Management.Automation.Host /// Presents a dialog allowing the user to choose an option from a set of options. /// /// - /// Caption to preceed or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" + /// Caption to precede or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" /// /// /// A message that describes what the choice is for. @@ -1145,7 +1145,7 @@ namespace System.Management.Automation.Host /// Presents a dialog allowing the user to choose options from a set of options. /// /// - /// Caption to preceed or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" + /// Caption to precede or title the prompt. E.g. "Parameters for get-foo (instance 1 of 2)" /// /// /// A message that describes what the choice is for. diff --git a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs index 9ee1e02365..b752f3ca84 100644 --- a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs +++ b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs @@ -1,7 +1,7 @@ /********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. -Descripton: +Description: Windows Vista and later support non-traditional UI fallback ie., a user on an Arabic machine can choose either French or English(US) as @@ -61,8 +61,8 @@ namespace Microsoft.PowerShell { get { - // First traverse the parent heirarchy as established by CLR. - // This is required because there is difference in the parent heirarchy + // First traverse the parent hierarchy as established by CLR. + // This is required because there is difference in the parent hierarchy // between CLR and Windows for Chinese. Ex: Native windows has // zh-CN->zh-Hans->neutral whereas CLR has zh-CN->zh-CHS->zh-Hans->neutral if ((null != base.Parent) && (!string.IsNullOrEmpty(base.Parent.Name))) @@ -120,7 +120,7 @@ namespace Microsoft.PowerShell { string parentCulture = base.Parent.Name; // remove the parentCulture from the m_fallbacks list. - // ie., remove duplicates from the parent heirarchy. + // ie., remove duplicates from the parent hierarchy. string[] fallbacksForTheParent = null; if (null != _fallbacks) { @@ -135,7 +135,7 @@ namespace Microsoft.PowerShell } } - // There is atlease 1 duplicate in m_fallbacks which was not added to + // There is atleast 1 duplicate in m_fallbacks which was not added to // fallbacksForTheParent array. Resize the array to take care of this. if (_fallbacks.Length != currentIndex) { @@ -290,7 +290,7 @@ namespace Microsoft.PowerShell // filter out languages that console cannot display.. // Sometimes GetConsoleFallbackUICulture returns neutral cultures // like "en" on "ar-SA". However neutral culture cannot be - // asssigned as CurrentCulture. CreateSpecificCulture fixes + // assigned as CurrentCulture. CreateSpecificCulture fixes // this problem. returnValue = CultureInfo.CreateSpecificCulture( returnValue.GetConsoleFallbackUICulture().Name); @@ -352,7 +352,7 @@ namespace Microsoft.PowerShell /// the UI languages a user has chosen. /// /// - /// List of ThredPreferredUILanguages. + /// List of ThreadPreferredUILanguages. /// /// /// This method will work only on Vista and later. @@ -367,7 +367,7 @@ namespace Microsoft.PowerShell if (filterOutNonConsoleCultures) { // Filter out languages that do not support console. - // The third paramter should be null otherwise this API will not + // The third parameter should be null otherwise this API will not // set Console CodePage filter. // The MSDN documentation does not call this out explicitly. Opened // Bug 950 (Windows Developer Content) to track this. @@ -451,7 +451,7 @@ namespace Microsoft.PowerShell /// /// Returns the size of the buffer containing the locale name, including /// the terminating null character, if successful. The function returns 0 - /// if it does not succeed. To get extended error information, the applciation + /// if it does not succeed. To get extended error information, the application /// can call GetLastError. Possible returns from GetLastError /// include ERR_INSUFFICIENT_BUFFER. /// diff --git a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs index 10815782ca..3e6634e1b9 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs @@ -316,7 +316,7 @@ namespace System.Management.Automation /// as the data buffer. /// /// - /// buffer wherer the elements are stored + /// buffer where the elements are stored /// /// /// Using this constructor will make the data buffer a wrapper on @@ -534,7 +534,7 @@ namespace System.Management.Automation { _isOpen = false; raiseEvents = true; - // release any threads to notify an event. Enumertor + // release any threads to notify an event. Enumerator // blocks on this syncObject. Monitor.PulseAll(SyncObject); @@ -1363,7 +1363,7 @@ namespace System.Management.Automation _readWaitHandle.Reset(); } } - // release any threads to notify an event. Enumertor + // release any threads to notify an event. Enumerator // blocks on this syncObject. Monitor.PulseAll(SyncObject); @@ -1525,7 +1525,7 @@ namespace System.Management.Automation { InsertItem(psInstanceId, _data.Count, (T)o); - // set raise events if atlease one item is + // set raise events if atleast one item is // added. raiseEvents = true; } @@ -1568,7 +1568,7 @@ namespace System.Management.Automation _readWaitHandle.Set(); } - // release any threads to notify refCount is 0. Enumertor + // release any threads to notify refCount is 0. Enumerator // blocks on this syncObject and it needs to be notified // when the count becomes 0. Monitor.PulseAll(SyncObject); @@ -1576,7 +1576,7 @@ namespace System.Management.Automation } /// - /// Returns the index of first occurece of + /// Returns the index of first occurrence of /// in the buffer. /// This method is not thread safe. /// @@ -1822,7 +1822,7 @@ namespace System.Management.Automation /// /// Enumerator for PSDataCollection. This enumerator blocks until - /// either all the PowerShell operations are compeleted or the + /// either all the PowerShell operations are completed or the /// PSDataCollection is closed. /// /// @@ -2006,7 +2006,7 @@ namespace System.Management.Automation /// /// /// Guid of Powershell instance creating this buffers. - /// Whenver an item is added to one of the buffers, this id is + /// Whenever an item is added to one of the buffers, this id is /// used to notify the buffer about the PowerShell instance adding /// this data. /// diff --git a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs index ce8a557a11..e941ad6737 100644 --- a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs +++ b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs @@ -115,7 +115,7 @@ namespace System.Management.Automation.Runspaces } /// - /// State of pipleine when exception was thrown. + /// State of pipeline when exception was thrown. /// [NonSerialized] private PipelineState _currentState = 0; @@ -397,7 +397,7 @@ namespace System.Management.Automation.Runspaces /// /// True if pipeline execution encountered and error. - /// It will alwys be true if _reason is non-null + /// It will always be true if _reason is non-null /// since an exception occurred. For other error types, /// It has to be set manually. /// @@ -413,7 +413,7 @@ namespace System.Management.Automation.Runspaces } /// - /// gets the unique identifier for this pipeline. This indentifier is unique with in + /// gets the unique identifier for this pipeline. This identifier is unique with in /// the scope of Runspace. /// public long InstanceId { get; } @@ -444,7 +444,7 @@ namespace System.Management.Automation.Runspaces /// On V1, the global error output pipe is redirected to the command's error output pipe only when /// it has already been redirected. The command-line host achieves this redirection by merging the /// error output into the output pipe so it checks $ErrorActionPreference all right. However, when - /// the Pipeline class is used programatically the global error output pipe is not set and the first + /// the Pipeline class is used programmatically the global error output pipe is not set and the first /// error terminates the pipeline. /// /// This flag is used to force the redirection. By default it is false to maintain compatibility with @@ -500,7 +500,7 @@ namespace System.Management.Automation.Runspaces /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the pipeline was executing was aborted. @@ -571,7 +571,7 @@ namespace System.Management.Automation.Runspaces /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the pipeline was executing was aborted. diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs index bd74a8a1c9..2a16aaa59f 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs @@ -529,7 +529,7 @@ namespace System.Management.Automation /// Constructor /// /// - /// Instace Id of the Powershell object creating this instance + /// Instance Id of the Powershell object creating this instance /// /// /// Callback to call when the async operation completes. @@ -567,7 +567,7 @@ namespace System.Management.Automation /// /// Powershell.Create("get-process").Invoke(); /// - /// The above statetement creates a local runspace using default + /// The above statement creates a local runspace using default /// configuration, executes the command and then closes the runspace. /// /// Using RunspacePool property, the caller can provide the runspace @@ -1672,7 +1672,7 @@ namespace System.Management.Automation internal bool RedirectShellErrorOutputPipe { get; set; } = true; /// - /// Get unqiue id for this instance of runspace pool. It is primarily used + /// Get unique id for this instance of runspace pool. It is primarily used /// for logging purposes. /// public Guid InstanceId { get; private set; } @@ -1710,7 +1710,7 @@ namespace System.Management.Automation } /// - /// Access to the EndInvoke AysncResult object. Used by remote + /// Access to the EndInvoke AsyncResult object. Used by remote /// debugging to invoke debugger commands on command thread. /// internal AsyncResult EndInvokeAsyncResult @@ -1720,7 +1720,7 @@ namespace System.Management.Automation } /// - /// Event rasied when PowerShell Execution State Changes. + /// Event raised when PowerShell Execution State Changes. /// public event EventHandler InvocationStateChanged; @@ -2212,7 +2212,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2274,7 +2274,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2339,7 +2339,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2401,7 +2401,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2467,7 +2467,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2534,7 +2534,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2604,7 +2604,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2670,7 +2670,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -2744,7 +2744,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -4161,7 +4161,7 @@ namespace System.Management.Automation /// /// A CLR security violation occurred. Typically, this happens /// because the current CLR permissions do not allow adequate - /// reflextion access to a cmdlet assembly. + /// reflection access to a cmdlet assembly. /// /// /// The thread in which the command was executing was aborted. @@ -4271,7 +4271,7 @@ namespace System.Management.Automation "Nested PowerShell can only work on a Runspace"); - // Peform work on the current thread. Nested Pipeline + // Perform work on the current thread. Nested Pipeline // should be invoked from the same thread that the parent // pipeline is executing in. _worker.ConstructPipelineAndDoWork(rsToUse, true); @@ -4415,7 +4415,7 @@ namespace System.Management.Automation throw; } - // Ignore the exception if neccessary. + // Ignore the exception if necessary. if ((null != settings) && settings.ErrorActionPreference == ActionPreference.Ignore) { continue; @@ -5179,7 +5179,7 @@ namespace System.Management.Automation /// /// This method gets called from a ThreadPool thread. /// This method gets called from a RunspacePool thread when a - /// Runsapce is available. + /// Runspace is available. /// /// /// AsyncResult object which monitors the asyncOperation. diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs index fb90be8243..d0c6ed3c17 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs @@ -140,7 +140,7 @@ namespace System.Management.Automation.Runspaces { get { - // When process is exited, there is some delay in receiving ProcesExited event and HasExited property on process object. + // When process is exited, there is some delay in receiving ProcessExited event and HasExited property on process object. // Using HasExited property on started process object to determine if powershell process has exited. // return _processExited || (_started && Process != null && Process.HasExited); diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs index 6981b0795d..1a4f070999 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs @@ -355,7 +355,7 @@ namespace System.Management.Automation.Runspaces public enum RunspacePoolCapability { /// - /// No additional capabilites beyond a default runspace. + /// No additional capabilities beyond a default runspace. /// Default = 0x0, @@ -384,7 +384,7 @@ namespace System.Management.Automation.Runspaces /// Constructor /// /// - /// Instace Id of the pool creating this instance + /// Instance Id of the pool creating this instance /// /// /// Callback to call when the async operation completes. @@ -433,7 +433,7 @@ namespace System.Management.Automation.Runspaces /// Constructor /// /// - /// Instace Id of the pool creating this instance + /// Instance Id of the pool creating this instance /// /// /// Callback to call when the async operation completes. @@ -649,7 +649,7 @@ namespace System.Management.Automation.Runspaces PSHost host, TypeTable typeTable) { - // Disconnect-Connect semantics are currently only suppored in WSMan transport. + // Disconnect-Connect semantics are currently only supported in WSMan transport. if (!(connectionInfo is WSManConnectionInfo)) { throw new NotSupportedException(); @@ -666,7 +666,7 @@ namespace System.Management.Automation.Runspaces #region Public Properties /// - /// Get unqiue id for this instance of runspace pool. It is primarily used + /// Get unique id for this instance of runspace pool. It is primarily used /// for logging purposes. /// public Guid InstanceId @@ -689,7 +689,7 @@ namespace System.Management.Automation.Runspaces } /// - /// Gets State of the current runpsace pool. + /// Gets State of the current runspace pool. /// public RunspacePoolStateInfo RunspacePoolStateInfo { @@ -859,7 +859,7 @@ namespace System.Management.Automation.Runspaces } /// - /// Event rasied when a new Runspace is created by the pool. + /// Event raised when a new Runspace is created by the pool. /// internal event EventHandler RunspaceCreated { @@ -1331,7 +1331,7 @@ namespace System.Management.Automation.Runspaces } /// - /// Waits for the pending asynchronous BegineGetRunspace to complete. + /// Waits for the pending asynchronous BeginGetRunspace to complete. /// /// /// diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs index 16f38d0782..f75104f2c3 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs @@ -201,7 +201,7 @@ namespace System.Management.Automation.Runspaces.Internal #region Public Properties /// - /// Get unqiue id for this instance of runspace pool. It is primarily used + /// Get unique id for this instance of runspace pool. It is primarily used /// for logging purposes. /// public Guid InstanceId @@ -224,7 +224,7 @@ namespace System.Management.Automation.Runspaces.Internal } /// - /// Gets State of the current runpsace pool. + /// Gets State of the current runspace pool. /// public RunspacePoolStateInfo RunspacePoolStateInfo { @@ -340,7 +340,7 @@ namespace System.Management.Automation.Runspaces.Internal public event EventHandler ForwardEvent; /// - /// Event rasied when a new Runspace is created by the pool. + /// Event raised when a new Runspace is created by the pool. /// internal event EventHandler RunspaceCreated; @@ -937,7 +937,7 @@ namespace System.Management.Automation.Runspaces.Internal } /// - /// Waits for the pending asynchronous BegineGetRunspace to complete. + /// Waits for the pending asynchronous BeginGetRunspace to complete. /// /// /// diff --git a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs index 997f59fefe..3d2edc7161 100644 --- a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs +++ b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs @@ -389,7 +389,7 @@ namespace System.Management.Automation.Runspaces if (SyncInvokeCall) { //Raise the pipeline completion events. These events are set in - //pipeline execution thread. However for Synchornous execution + //pipeline execution thread. However for Synchronous execution //we raise the event in the main thread. RaisePipelineStateEvents(); } @@ -526,7 +526,7 @@ namespace System.Management.Automation.Runspaces RunspaceBase.DoConcurrentCheckAndAddToRunningPipelines(this, syncCall); //Note: Set PipelineState to Running only after adding pipeline to list - //of pipelines in exectuion. AddForExecution checks that runspace is in + //of pipelines in execution. AddForExecution checks that runspace is in //state where pipeline can be run. //StartPipelineExecution raises this event. See Windows Bug 1160481 for //more details. @@ -591,7 +591,7 @@ namespace System.Management.Automation.Runspaces /// In case of LocalPipeline, this is the thread of execution /// of LocalPipeline. In case of RemotePipeline, this is thread /// on which EnterNestedPrompt is called. - /// RemotePipeline proxy should set it on at the begining of + /// RemotePipeline proxy should set it on at the beginning of /// EnterNestedPrompt and clear it on return. /// internal Thread NestedPipelineExecutionThread { get; set; } @@ -604,7 +604,7 @@ namespace System.Management.Automation.Runspaces /// True if method is called from Invoke, false /// if called from InvokeAsync /// The sync object on which the lock is acquired - /// True if the method is invoked in a critical secion + /// True if the method is invoked in a critical section /// /// 1) A pipeline is already executing. Pipeline cannot execute /// concurrently. @@ -871,7 +871,7 @@ namespace System.Management.Automation.Runspaces // this is shipped as part of V1. So disabling the warning here. #pragma warning disable 56500 - //Exception rasied in the eventhandler are not error in pipeline. + //Exception raised in the eventhandler are not error in pipeline. //silently ignore them. if (stateChanged != null) {