mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
spelling: comments in src/System.Management.Automation/engine/hostifaces
This commit is contained in:
@@ -32,7 +32,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="ownerId">
|
||||
/// Instace Id of the object creating this instance
|
||||
/// Instance Id of the object creating this instance
|
||||
/// </param>
|
||||
/// <param name="callback">
|
||||
/// A AsyncCallback to call once the async operation completes.
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace System.Management.Automation.Runspaces
|
||||
internal PipelineResultTypes[] MergeInstructions { get; set; } = new PipelineResultTypes[MaxMergeType];
|
||||
|
||||
/// <summary>
|
||||
/// Merges this commands resutls
|
||||
/// Merges this commands results
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="myResult">
|
||||
@@ -874,7 +874,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// string representing the command(s)
|
||||
|
||||
@@ -419,7 +419,7 @@ namespace System.Management.Automation.Runspaces
|
||||
public enum RunspaceCapability
|
||||
{
|
||||
/// <summary>
|
||||
/// No additional capabilites beyond a default runspace.
|
||||
/// No additional capabilities beyond a default runspace.
|
||||
/// </summary>
|
||||
Default = 0x0,
|
||||
|
||||
@@ -674,7 +674,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// </summary>
|
||||
public Guid InstanceId { get;
|
||||
@@ -1394,7 +1394,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// </summary>
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with a <see cref="Command"/> object for specified command parameter.
|
||||
/// A pipeline pre-filled with a <see cref="Command"/> object for specified command parameter.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
@@ -1407,7 +1407,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <param name="addToHistory">if true command is added to history</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with a <see cref="Command"/> object for specified command parameter.
|
||||
/// A pipeline pre-filled with a <see cref="Command"/> object for specified command parameter.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
@@ -1430,7 +1430,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <param name="addToHistory">if true command is added to history</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with Command specified in commandString.
|
||||
/// A pipeline pre-filled with Command specified in commandString.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Createa a pipeline froma command string
|
||||
/// Create a pipeline from a command string
|
||||
/// </summary>
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with Commands specified in commandString.
|
||||
/// A pipeline pre-filled with Commands specified in commandString.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
@@ -566,7 +566,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <param name="addToHistory">if true command is added to history</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with Commands specified in commandString.
|
||||
/// A pipeline pre-filled with Commands specified in commandString.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
@@ -600,7 +600,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="command">A valid command string</param>
|
||||
/// <param name="addToHistory">if true command is added to history</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with Commands specified in commandString.
|
||||
/// A pipeline pre-filled with Commands specified in commandString.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// command is null
|
||||
@@ -623,7 +623,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="addToHistory">if true command is added to history</param>
|
||||
/// <param name="isNested">True for nested pipeline</param>
|
||||
/// <returns>
|
||||
/// A pipline pre-filled with Commands specified in commandString.
|
||||
/// A pipeline pre-filled with Commands specified in commandString.
|
||||
/// </returns>
|
||||
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
|
||||
|
||||
/// <summary>
|
||||
/// Protected methods to be implemented by derived class.
|
||||
/// This does the acutal work of setting variable.
|
||||
/// This does the actual work of setting variable.
|
||||
/// </summary>
|
||||
/// <param name="name">Name of the variable to set</param>
|
||||
/// <param name="value">The value to set it to</param>
|
||||
|
||||
@@ -480,7 +480,7 @@ namespace System.Management.Automation.Runspaces
|
||||
|
||||
/// <summary>
|
||||
/// Creates a RunspacePool
|
||||
/// on the specified remote runspace compuer.
|
||||
/// on the specified remote runspace computer.
|
||||
/// <paramref name="maxRunspaces"/>
|
||||
/// 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 <paramref name="typeTable"/> is null no custom serialization/deserialization
|
||||
@@ -527,7 +527,7 @@ namespace System.Management.Automation.Runspaces
|
||||
|
||||
/// <summary>
|
||||
/// Creates a RunspacePool
|
||||
/// on the specified remote runspace compuer.
|
||||
/// on the specified remote runspace computer.
|
||||
/// <paramref name="maxRunspaces"/>
|
||||
/// 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 <paramref name="typeTable"/> 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
|
||||
/// </param>
|
||||
/// <param name="host"></param>
|
||||
@@ -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
|
||||
/// </param>
|
||||
/// <param name="host"></param>
|
||||
@@ -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
|
||||
/// </param>
|
||||
/// <param name="applicationArguments">
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Execution status of assoicated pipeline
|
||||
/// Execution status of associated pipeline
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public PipelineState ExecutionStatus
|
||||
@@ -245,7 +245,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
#region ICloneable Members
|
||||
|
||||
/// <summary>
|
||||
/// Retuns a clone of this object
|
||||
/// Returns a clone of this object
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public HistoryInfo Clone()
|
||||
@@ -326,7 +326,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Udpate the history entry corresponding to id.
|
||||
/// Update the history entry corresponding to id.
|
||||
/// </summary>
|
||||
/// <param name="id">id of history entry to be updated</param>
|
||||
/// <param name="status">status to be updated</param>
|
||||
@@ -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<HistoryInfo> cmdlist = new List<HistoryInfo>();
|
||||
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.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// HistoryInfo object if coversion is successful else null.
|
||||
/// HistoryInfo object if conversion is successful else null.
|
||||
/// </returns>
|
||||
#pragma warning disable 0162
|
||||
private
|
||||
@@ -1991,7 +1991,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clears the session history based on the input parametera
|
||||
/// Clears the session history based on the input parameter
|
||||
/// <param name="id" >id of the entry to be cleared</param>
|
||||
/// <param name="count" > count of entries to be cleared</param>
|
||||
/// <param name="cmdline" >cmdline string to be cleared</param>
|
||||
|
||||
@@ -79,8 +79,8 @@ namespace System.Management.Automation
|
||||
/// </summary>
|
||||
/// <param name="allUsersAllHosts">The profile file name for all users and all hosts.</param>
|
||||
/// <param name="allUsersCurrentHost">The profile file name for all users and current host.</param>
|
||||
/// <param name="currentUserAllHosts">The profile file name for cuurrent user and all hosts.</param>
|
||||
/// <param name="currentUserCurrentHost">The profile name for cuurrent user and current host.</param>
|
||||
/// <param name="currentUserAllHosts">The profile file name for current user and all hosts.</param>
|
||||
/// <param name="currentUserCurrentHost">The profile name for current user and current host.</param>
|
||||
/// <returns>A PSObject whose base object is currentUserCurrentHost and with notes for the other 4 parameters.</returns>
|
||||
internal static PSObject GetDollarProfile(string allUsersAllHosts, string allUsersCurrentHost, string currentUserAllHosts, string currentUserCurrentHost)
|
||||
{
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace System.Management.Automation.Internal.Host
|
||||
/// <value></value>
|
||||
/// <exception cref="NotImplementedException">
|
||||
///
|
||||
/// when the external host's InstaceId is a zero Guid.
|
||||
/// when the external host's InstanceId is a zero Guid.
|
||||
///
|
||||
/// </exception>
|
||||
public override System.Guid InstanceId
|
||||
|
||||
@@ -424,7 +424,7 @@ namespace System.Management.Automation.Internal.Host
|
||||
/// </exception>
|
||||
/// <exception cref="ArgumentException">
|
||||
///
|
||||
/// If the debug preference is not a valid ActionPrefernce value.
|
||||
/// If the debug preference is not a valid ActionPreference value.
|
||||
///
|
||||
/// </exception>
|
||||
|
||||
@@ -482,11 +482,11 @@ namespace System.Management.Automation.Internal.Host
|
||||
/// </summary>
|
||||
/// <param name="informationalBuffers">
|
||||
/// Buffers to which Debug, Verbose, Warning, Progress, Information messages
|
||||
/// will be writtern to.
|
||||
/// will be written to.
|
||||
/// </param>
|
||||
/// <remarks>
|
||||
/// This method is not thread safe. Caller should make sure of the
|
||||
/// assosciated risks.
|
||||
/// associated risks.
|
||||
/// </remarks>
|
||||
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.
|
||||
/// </summary>
|
||||
/// <param name="caption">
|
||||
/// 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)"
|
||||
/// </param>
|
||||
/// <param name="message">
|
||||
/// A message that describes what the choice is for.
|
||||
|
||||
@@ -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
|
||||
/// </summary>
|
||||
/// <param name="syncCall">
|
||||
/// paramter which control if Open is done synchronously or asynchronously
|
||||
/// parameter which control if Open is done synchronously or asynchronously
|
||||
/// </param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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
|
||||
/// </remarks>
|
||||
internal PipelineThread GetPipelineThread()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets PipelineStopper object which maitains stack of PipelineProcessor
|
||||
/// Gets PipelineStopper object which maintains stack of PipelineProcessor
|
||||
/// for this pipeline
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
@@ -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
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// ExecutionContext, if it available in TLS
|
||||
/// Null, if ExecutionContext is not availalbe in TLS
|
||||
/// Null, if ExecutionContext is not available in TLS
|
||||
/// </returns>
|
||||
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];
|
||||
|
||||
@@ -238,9 +238,9 @@ namespace System.Management.Automation.Host
|
||||
/// If the UI property returns null, the engine should not call this method.
|
||||
///
|
||||
///
|
||||
/// <!--Was: ExecuteSubShell. "subshell" inplies a new child engine, which is not the case here. This is called during the
|
||||
/// <!--Was: ExecuteSubShell. "subshell" implies a new child engine, which is not the case here. This is called during the
|
||||
/// interruption of a pipeline to allow nested pipeline(s) to be run as a way to the user to suspend execution while he
|
||||
/// evalautes other commands. It does not create a truly new engine instance with new session state.-->
|
||||
/// evaluates other commands. It does not create a truly new engine instance with new session state.-->
|
||||
///
|
||||
/// </remarks>
|
||||
/// <seealso cref="System.Management.Automation.Host.PSHost.ExitNestedPrompt"/>
|
||||
@@ -258,7 +258,7 @@ namespace System.Management.Automation.Host
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// 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
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
|
||||
@@ -880,7 +880,7 @@ namespace System.Management.Automation.Host
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Gets and sets the bottom of the rectanngle
|
||||
/// Gets and sets the bottom of the rectangle
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -909,7 +909,7 @@ namespace System.Management.Automation.Host
|
||||
/// </param>
|
||||
/// <param name="bottom">
|
||||
///
|
||||
/// The bottom of the rectanngle
|
||||
/// The bottom of the rectangle
|
||||
///
|
||||
/// </param>
|
||||
/// <exception cref="ArgumentException">
|
||||
@@ -2145,7 +2145,7 @@ namespace System.Management.Automation.Host
|
||||
/// equal to the largest number of cells a string in <paramref name="contents"/> takes. The
|
||||
/// foreground and background colors of the cells are initialized to
|
||||
/// <paramref name="foregroundColor"/> and <paramref name="backgroundColor"/>, respectively.
|
||||
/// The resuling array is suitable for use with <see cref="PSHostRawUserInterface.SetBufferContents(Rectangle, BufferCell)"/>
|
||||
/// The resulting array is suitable for use with <see cref="PSHostRawUserInterface.SetBufferContents(Rectangle, BufferCell)"/>
|
||||
/// and <see cref="PSHostRawUserInterface.SetBufferContents(Coordinates, BufferCell[,])"/>.
|
||||
///
|
||||
/// </remark>
|
||||
|
||||
@@ -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.
|
||||
/// </summary>
|
||||
/// <param name="caption">
|
||||
/// 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)"
|
||||
/// </param>
|
||||
/// <param name="message">
|
||||
/// 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.
|
||||
/// </returns>
|
||||
/// <seealso cref="System.Management.Automation.Host.PSHostUserInterface.ReadLine"/>
|
||||
/// <seealso cref="System.Management.Automation.Host.PSHostUserInterface.ReadLineAsSecureString"/>
|
||||
@@ -815,7 +815,7 @@ namespace System.Management.Automation.Host
|
||||
/// Presents a dialog allowing the user to choose an option from a set of options.
|
||||
/// </summary>
|
||||
/// <param name="caption">
|
||||
/// 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)"
|
||||
/// </param>
|
||||
/// <param name="message">
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <param name="caption">
|
||||
/// 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)"
|
||||
/// </param>
|
||||
/// <param name="message">
|
||||
/// A message that describes what the choice is for.
|
||||
|
||||
@@ -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.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// List of ThredPreferredUILanguages.
|
||||
/// List of ThreadPreferredUILanguages.
|
||||
/// </returns>
|
||||
/// <remarks>
|
||||
/// 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>
|
||||
/// 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.
|
||||
/// </returns>
|
||||
|
||||
@@ -316,7 +316,7 @@ namespace System.Management.Automation
|
||||
/// as the data buffer.
|
||||
/// </summary>
|
||||
/// <param name="listToUse">
|
||||
/// buffer wherer the elements are stored
|
||||
/// buffer where the elements are stored
|
||||
/// </param>
|
||||
/// <remarks>
|
||||
/// 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
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the index of first occurece of <paramref name="item"/>
|
||||
/// Returns the index of first occurrence of <paramref name="item"/>
|
||||
/// in the buffer.
|
||||
/// This method is not thread safe.
|
||||
/// </summary>
|
||||
@@ -1822,7 +1822,7 @@ namespace System.Management.Automation
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <typeparam name="W"></typeparam>
|
||||
@@ -2006,7 +2006,7 @@ namespace System.Management.Automation
|
||||
/// </summary>
|
||||
/// <param name="psInstanceId">
|
||||
/// 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.
|
||||
/// </param>
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// State of pipleine when exception was thrown.
|
||||
/// State of pipeline when exception was thrown.
|
||||
/// </summary>
|
||||
[NonSerialized]
|
||||
private PipelineState _currentState = 0;
|
||||
@@ -397,7 +397,7 @@ namespace System.Management.Automation.Runspaces
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
@@ -413,7 +413,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
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
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the pipeline was executing was aborted.
|
||||
@@ -571,7 +571,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the pipeline was executing was aborted.
|
||||
|
||||
@@ -529,7 +529,7 @@ namespace System.Management.Automation
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="ownerId">
|
||||
/// Instace Id of the Powershell object creating this instance
|
||||
/// Instance Id of the Powershell object creating this instance
|
||||
/// </param>
|
||||
/// <param name="callback">
|
||||
/// Callback to call when the async operation completes.
|
||||
@@ -567,7 +567,7 @@ namespace System.Management.Automation
|
||||
/// <code>
|
||||
/// Powershell.Create("get-process").Invoke();
|
||||
/// </code>
|
||||
/// 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;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public Guid InstanceId { get; private set; }
|
||||
@@ -1710,7 +1710,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
internal AsyncResult EndInvokeAsyncResult
|
||||
@@ -1720,7 +1720,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event rasied when PowerShell Execution State Changes.
|
||||
/// Event raised when PowerShell Execution State Changes.
|
||||
/// </summary>
|
||||
public event EventHandler<PSInvocationStateChangedEventArgs> InvocationStateChanged;
|
||||
|
||||
@@ -2212,7 +2212,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2274,7 +2274,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2339,7 +2339,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2401,7 +2401,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2467,7 +2467,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2534,7 +2534,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2604,7 +2604,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2670,7 +2670,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -2744,7 +2744,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// The thread in which the command was executing was aborted.
|
||||
@@ -4161,7 +4161,7 @@ namespace System.Management.Automation
|
||||
/// <exception cref="System.Security.SecurityException">
|
||||
/// 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.
|
||||
/// </exception>
|
||||
/// <exception cref="ThreadAbortException">
|
||||
/// 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
|
||||
/// <summary>
|
||||
/// This method gets called from a ThreadPool thread.
|
||||
/// This method gets called from a RunspacePool thread when a
|
||||
/// Runsapce is available.
|
||||
/// Runspace is available.
|
||||
/// </summary>
|
||||
/// <param name="asyncResult">
|
||||
/// AsyncResult object which monitors the asyncOperation.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -355,7 +355,7 @@ namespace System.Management.Automation.Runspaces
|
||||
public enum RunspacePoolCapability
|
||||
{
|
||||
/// <summary>
|
||||
/// No additional capabilites beyond a default runspace.
|
||||
/// No additional capabilities beyond a default runspace.
|
||||
/// </summary>
|
||||
Default = 0x0,
|
||||
|
||||
@@ -384,7 +384,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="ownerId">
|
||||
/// Instace Id of the pool creating this instance
|
||||
/// Instance Id of the pool creating this instance
|
||||
/// </param>
|
||||
/// <param name="callback">
|
||||
/// Callback to call when the async operation completes.
|
||||
@@ -433,7 +433,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="ownerId">
|
||||
/// Instace Id of the pool creating this instance
|
||||
/// Instance Id of the pool creating this instance
|
||||
/// </param>
|
||||
/// <param name="callback">
|
||||
/// 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
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public Guid InstanceId
|
||||
@@ -689,7 +689,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets State of the current runpsace pool.
|
||||
/// Gets State of the current runspace pool.
|
||||
/// </summary>
|
||||
public RunspacePoolStateInfo RunspacePoolStateInfo
|
||||
{
|
||||
@@ -859,7 +859,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event rasied when a new Runspace is created by the pool.
|
||||
/// Event raised when a new Runspace is created by the pool.
|
||||
/// </summary>
|
||||
internal event EventHandler<RunspaceCreatedEventArgs> RunspaceCreated
|
||||
{
|
||||
@@ -1331,7 +1331,7 @@ namespace System.Management.Automation.Runspaces
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Waits for the pending asynchronous BegineGetRunspace to complete.
|
||||
/// Waits for the pending asynchronous BeginGetRunspace to complete.
|
||||
/// </summary>
|
||||
/// <param name="asyncResult">
|
||||
/// </param>
|
||||
|
||||
@@ -201,7 +201,7 @@ namespace System.Management.Automation.Runspaces.Internal
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public Guid InstanceId
|
||||
@@ -224,7 +224,7 @@ namespace System.Management.Automation.Runspaces.Internal
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets State of the current runpsace pool.
|
||||
/// Gets State of the current runspace pool.
|
||||
/// </summary>
|
||||
public RunspacePoolStateInfo RunspacePoolStateInfo
|
||||
{
|
||||
@@ -340,7 +340,7 @@ namespace System.Management.Automation.Runspaces.Internal
|
||||
public event EventHandler<PSEventArgs> ForwardEvent;
|
||||
|
||||
/// <summary>
|
||||
/// Event rasied when a new Runspace is created by the pool.
|
||||
/// Event raised when a new Runspace is created by the pool.
|
||||
/// </summary>
|
||||
internal event EventHandler<RunspaceCreatedEventArgs> RunspaceCreated;
|
||||
|
||||
@@ -937,7 +937,7 @@ namespace System.Management.Automation.Runspaces.Internal
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Waits for the pending asynchronous BegineGetRunspace to complete.
|
||||
/// Waits for the pending asynchronous BeginGetRunspace to complete.
|
||||
/// </summary>
|
||||
/// <param name="asyncResult">
|
||||
/// </param>
|
||||
|
||||
@@ -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.
|
||||
/// </summary>
|
||||
internal Thread NestedPipelineExecutionThread { get; set; }
|
||||
@@ -604,7 +604,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// <param name="syncCall">True if method is called from Invoke, false
|
||||
/// if called from InvokeAsync</param>
|
||||
/// <param name="syncObject">The sync object on which the lock is acquired</param>
|
||||
/// <param name="isInLock">True if the method is invoked in a critical secion</param>
|
||||
/// <param name="isInLock">True if the method is invoked in a critical section</param>
|
||||
/// <exception cref="InvalidOperationException">
|
||||
/// 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user