mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Spelling comments (#2066)
* spelling: comments in src/Microsoft.Management.Infrastructure.CimCmdlets * spelling: comments in src/Microsoft.PackageManagement.ArchiverProviders * spelling: comments in src/Microsoft.PackageManagement.CoreProviders * spelling: comments in src/Microsoft.PackageManagement.MetaProvider.PowerShell * spelling: comments in src/Microsoft.PackageManagement.MsiProvider * spelling: comments in src/Microsoft.PackageManagement.MsuProvider * spelling: comments in src/Microsoft.PackageManagement.NuGetProvider * spelling: comments in src/Microsoft.PackageManagement.PackageSourceListProvider * spelling: comments in src/Microsoft.PackageManagement * spelling: comments in src/Microsoft.PowerShell.Activities * spelling: comments in src/Microsoft.PowerShell.Commands.Diagnostics * spelling: comments in src/Microsoft.PowerShell.Commands.Management * spelling: comments in src/Microsoft.PowerShell.Commands.Utility * spelling: comments in src/Microsoft.PowerShell.ConsoleHost * spelling: comments in src/Microsoft.PowerShell.Core.Activities * spelling: comments in src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext * spelling: comments in src/Microsoft.PowerShell.CoreCLR.Eventing * spelling: comments in src/Microsoft.PowerShell.Diagnostics.Activities * spelling: comments in src/Microsoft.PowerShell.GraphicalHost * spelling: comments in src/Microsoft.PowerShell.LocalAccounts * spelling: comments in src/Microsoft.PowerShell.Management.Activities * spelling: comments in src/Microsoft.PowerShell.PSReadLine * spelling: comments in src/Microsoft.PowerShell.PackageManagement * spelling: comments in src/Microsoft.PowerShell.ScheduledJob * spelling: comments in src/Microsoft.PowerShell.Security.Activities * spelling: comments in src/Microsoft.PowerShell.Security * spelling: comments in src/Microsoft.PowerShell.Utility.Activities * spelling: comments in src/Microsoft.PowerShell.Workflow.ServiceCore * spelling: comments in src/Microsoft.WSMan.Management.Activities * spelling: comments in src/Modules * spelling: comments in src/Schemas * spelling: comments in src/libpsl-native * spelling: comments in src/powershell-native * spelling: comments in build.psm1 * spelling: comments in src/System.Management.Automation/CoreCLR * spelling: comments in src/System.Management.Automation/DscSupport * spelling: comments in src/System.Management.Automation/cimSupport * spelling: comments in src/System.Management.Automation/commands * spelling: comments in src/System.Management.Automation/engine/Modules
This commit is contained in:
1 parent
e4f3f8fd69
commit
eb3fd7ae6c
532 files changed
+1091
-1091
No files matched your search
+1
-1
@@ -94,7 +94,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
#region Overrides
|
||||
|
||||
/// <summary>
|
||||
/// Whether the operation reprensented by this method is
|
||||
/// Whether the operation represented by this method is
|
||||
/// completed
|
||||
/// </summary>
|
||||
public bool IsCompleted
|
||||
|
||||
+5
-5
@@ -168,7 +168,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
catch (Exception e)
|
||||
{
|
||||
// RemoteRunspace.Close can throw exceptions when Server process has exited or runspace is invalid.
|
||||
// Ignoring all exceptions as this runpspace was used for previous OOP activity execution.
|
||||
// Ignoring all exceptions as this runspace was used for previous OOP activity execution.
|
||||
//
|
||||
_tracer.TraceException(e);
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
using (System.Management.Automation.PowerShell ps = System.Management.Automation.PowerShell.Create())
|
||||
{
|
||||
ps.Runspace = runspace;
|
||||
// Setting erroaction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
// Setting erroraction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
ps.AddCommand("Import-Module").AddArgument(modules).AddParameter("ErrorAction",ActionPreference.Stop).AddParameter("Force");
|
||||
ps.Invoke();
|
||||
}
|
||||
@@ -339,7 +339,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
if (_busy) return;
|
||||
|
||||
// Mark this process for removal and set it as busy so that this process will not be assigned to any new activity.
|
||||
// Marking for removal will ensure that servicing thread will remove this object from host processs collection.
|
||||
// Marking for removal will ensure that servicing thread will remove this object from host process collection.
|
||||
//
|
||||
_busy = true;
|
||||
_markForRemoval = true;
|
||||
@@ -448,7 +448,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
// Prepare phase is completed without any issues.
|
||||
// setupSucceeded flag is used in HandleTranportError method to enqueue the current activity for retry.
|
||||
// setupSucceeded flag is used in HandleTransportError method to enqueue the current activity for retry.
|
||||
// If there is any PSRemotingTransportException during InvokePowershell current activity will not be enqueued to setup failed requests in ActivityHostManager.
|
||||
//
|
||||
setupSucceeded = true;
|
||||
@@ -522,7 +522,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
#region IDisposable
|
||||
|
||||
/// <summary>
|
||||
/// Dipose
|
||||
/// Dispose
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
+3
-3
@@ -198,7 +198,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
System.Management.Automation.PowerShell currentPowerShellInstance = implementationContext.PowerShellInstance;
|
||||
PSActivityContext psActivityContext = args.PSActivityContext;
|
||||
|
||||
// Non-empty guid represtents that args.ImplementationContext.EnableRemotingActivityAutoResume is true
|
||||
// Non-empty guid represents that args.ImplementationContext.EnableRemotingActivityAutoResume is true
|
||||
if (!runspaceId.Equals(Guid.Empty))
|
||||
{
|
||||
Runspace[] runspaces = null;
|
||||
@@ -946,7 +946,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
AssertNotDisposed();
|
||||
|
||||
// this will throw an exeption when a runspace is not successfully
|
||||
// this will throw an exception when a runspace is not successfully
|
||||
// available
|
||||
result.EndInvoke();
|
||||
|
||||
@@ -1961,7 +1961,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dipose the connection manager
|
||||
/// Dispose the connection manager
|
||||
/// </summary>
|
||||
/// <param name="isDisposing"></param>
|
||||
protected void Dispose(bool isDisposing)
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
// Start the workflow job manager, if not started, to add an event handler for zero active sessions changed events
|
||||
// This is required to auto shudown the workflow type shared process when no workflow jobs have scheduled/inprogress and when no active sessions
|
||||
// This is required to auto shutdown the workflow type shared process when no workflow jobs have scheduled/inprogress and when no active sessions
|
||||
WorkflowJobSourceAdapter.GetInstance().GetJobManager();
|
||||
}
|
||||
catch(Exception)
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
private static readonly PowerShellTraceSource Tracer = PowerShellTraceSourceFactory.GetTraceSource();
|
||||
|
||||
/// <summary>
|
||||
/// The additional entroy for security 'POWERSHELLWORKFLOW'
|
||||
/// The additional entry for security 'POWERSHELLWORKFLOW'
|
||||
/// </summary>
|
||||
private static byte[] s_aditionalEntropy = { (byte)'P', (byte)'O', (byte)'W', (byte)'E', (byte)'R', (byte)'S', (byte)'H', (byte)'E', (byte)'L', (byte)'L', (byte)'W', (byte)'O', (byte)'R', (byte)'K', (byte)'F', (byte)'L', (byte)'O', (byte)'W' };
|
||||
|
||||
|
||||
+2
-2
@@ -1381,7 +1381,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
else
|
||||
{
|
||||
// there is no point in hanging around partial data in the store so deleting the store.
|
||||
// and no further persitence allowed after this point
|
||||
// and no further persistence allowed after this point
|
||||
this.InternalDelete();
|
||||
serializationErrorHasOccured = true;
|
||||
|
||||
@@ -2012,7 +2012,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
}
|
||||
}
|
||||
// It is safe of absorb an exception here because there might be a possiblity that the mulitiple
|
||||
// It is safe of absorb an exception here because there might be a possibility that the multiple
|
||||
// processes are try work on the same endpoint or default end point store folder.
|
||||
// There is a possibility that one process has deleted the a workflow store and the other one is trying to access it for calculating its store size.
|
||||
// And we will set the flag to make sure we calculate the size next time.
|
||||
|
||||
+1
-1
@@ -897,7 +897,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get Activity Run Mode InPocess or Out of process
|
||||
/// Get Activity Run Mode InProcess or Out of process
|
||||
/// </summary>
|
||||
/// <param name="activity"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
+9
-9
@@ -442,7 +442,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
/// <summary>
|
||||
/// Executes an instance of the workflow object graph identified by the passed
|
||||
/// GUID, binding parameters from the Parameters hastable.
|
||||
/// GUID, binding parameters from the Parameters hashtable.
|
||||
/// </summary>
|
||||
/// <param name="command">The powershell command.</param>
|
||||
/// <param name="workflowGuid">The GUID used to identify the workflow to run.</param>
|
||||
@@ -459,7 +459,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
/// <summary>
|
||||
/// Executes an instance of the workflow object graph identified by the passed
|
||||
/// GUID, binding parameters from the Parameters hastable.
|
||||
/// GUID, binding parameters from the Parameters hashtable.
|
||||
/// </summary>
|
||||
/// <param name="command">The powershell command.</param>
|
||||
/// <param name="workflowGuid">The GUID used to identify the workflow to run.</param>
|
||||
@@ -477,7 +477,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
/// <summary>
|
||||
/// Executes an instance of the workflow object graph identified by the passed
|
||||
/// GUID, binding parameters from the Parameters hastable.
|
||||
/// GUID, binding parameters from the Parameters hashtable.
|
||||
/// </summary>
|
||||
/// <param name="command">The powershell command.</param>
|
||||
/// <param name="workflowGuid">The GUID used to identify the workflow to run.</param>
|
||||
@@ -585,7 +585,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
else if (parameters.Length == 1 && !parameterCollectionProcessed)
|
||||
{
|
||||
// If the paramter collection is just the $PSBoundParameters
|
||||
// If the parameter collection is just the $PSBoundParameters
|
||||
// i.e. did not come through the PSParameterCollection list
|
||||
// then just we can use it as is since it's already been processed through the parameter
|
||||
// binder...
|
||||
@@ -1164,7 +1164,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
continue;
|
||||
}
|
||||
|
||||
// If the parameter name is one of the expected collisons, don't add it to the list.
|
||||
// If the parameter name is one of the expected collisions, don't add it to the list.
|
||||
if (p.Name.Equals(Constants.ComputerName, StringComparison.OrdinalIgnoreCase) || p.Name.Equals(Constants.PrivateMetadata, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
continue;
|
||||
@@ -1195,7 +1195,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
var attributeAst = attribute as AttributeAst;
|
||||
if (attributeAst == null || !string.Equals(attribute.TypeName.Name, "Parameter", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// If we have a Credential Attribute, it has been added to the inner function, it does not need to be added to the outer definiton.
|
||||
// If we have a Credential Attribute, it has been added to the inner function, it does not need to be added to the outer definition.
|
||||
// This will prevent prompting for the cred twice.
|
||||
if (!string.Equals(attribute.TypeName.FullName, "System.Management.Automation.CredentialAttribute", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@@ -1239,7 +1239,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
// Scriptworkflow ALSO comes through this path.
|
||||
else
|
||||
{
|
||||
// If the parameter is an In parameter with the RequiredArguement attribute then make it mandatory
|
||||
// If the parameter is an In parameter with the RequiredArgument attribute then make it mandatory
|
||||
if (typeof(System.Activities.InArgument).IsAssignableFrom(p.Type))
|
||||
{
|
||||
if (p.Attributes != null)
|
||||
@@ -1341,7 +1341,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
$validated
|
||||
}
|
||||
|
||||
# If there was no '*' collection, added the paramter defaults
|
||||
# If there was no '*' collection, added the parameter defaults
|
||||
# to each individual collection if the parameter isn't already there...
|
||||
if (-not $PSParameterCollectionDefaultsMember)
|
||||
{
|
||||
@@ -1546,7 +1546,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
// For inner function, don't add -PSParameterCollection param. AsJob and JobName are needed in the inner function for
|
||||
// parameter validation in non-PSParameterCollection cases. For PSParameterCollection, they will be checked for
|
||||
// with a seperate check.
|
||||
// with a separate check.
|
||||
// We want it at workflow function, but not in the subfunction that validates the parameter for PSParameterCollection
|
||||
if (!innerfunction)
|
||||
{
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
if (result == null)
|
||||
throw new ArgumentException(Resources.InvalidAsyncResultSpecified, "asyncResult");
|
||||
|
||||
// this will throw an exeption when a runspace is not successfully
|
||||
// this will throw an exception when a runspace is not successfully
|
||||
// available
|
||||
result.EndInvoke();
|
||||
|
||||
|
||||
+1
-1
@@ -636,7 +636,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// UseEnctyption
|
||||
/// UseEncryption
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public SwitchParameter PersistWithEncryption {
|
||||
|
||||
+21
-21
@@ -320,7 +320,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dipose of managed resources
|
||||
/// Dispose of managed resources
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if disposing</param>
|
||||
private void Dispose(bool disposing)
|
||||
@@ -1199,7 +1199,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
// bookmarking will only be enabled when the PSPersist variable is set to 'true' by the author.
|
||||
// so we are retriveing the information before host overrides.
|
||||
// so we are retrieving the information before host overrides.
|
||||
// if the value is false or not provided then we will not go into the unloaded mode.
|
||||
|
||||
bool intBookmarking = InternalBookmarkingRequired(context);
|
||||
@@ -1812,7 +1812,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
{
|
||||
activityProgMsg = this.PSProgressMessage.Get(context);
|
||||
|
||||
// there is no need to write the progress message since the value of psprogressmessage is explicityly provided with null
|
||||
// there is no need to write the progress message since the value of psprogressmessage is explicitly provided with null
|
||||
if (this.PSProgressMessage.Expression != null && string.IsNullOrEmpty(activityProgMsg))
|
||||
return;
|
||||
}
|
||||
@@ -1948,7 +1948,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
|
||||
// this is expected when there would be a disconnected execution
|
||||
// here we expects the PSActivityHostArguments to be passed
|
||||
// agrument contains the result from the execution
|
||||
// argument contains the result from the execution
|
||||
PSResumableActivityContext arguments = null;
|
||||
if (value != null && value.GetType() == typeof(PSResumableActivityContext))
|
||||
{
|
||||
@@ -2129,7 +2129,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The method is override-able by the drived classes in case they would like to implement different logic at the end of persistence.
|
||||
/// The method is override-able by the derived classes in case they would like to implement different logic at the end of persistence.
|
||||
/// The default behavior would be to schedule the 'Persist' activity if the PSPersist flag is true or Host is asking for it.
|
||||
/// </summary>
|
||||
/// <param name="context">The native activity context of execution engine.</param>
|
||||
@@ -2613,11 +2613,11 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <summary>
|
||||
/// The method for derived activities to return a configured instance of System.Management.Automation.PowerShell.
|
||||
/// The implementor should have added all of the commands and parameters required to launch their command through
|
||||
/// the standard AddCommand() and AddParameter() methods. Derived activites should not manage the Runspace property
|
||||
/// the standard AddCommand() and AddParameter() methods. Derived activities should not manage the Runspace property
|
||||
/// directly, as the PSActivity class configures the runspace afterward to enable remote connections.
|
||||
/// </summary>
|
||||
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
|
||||
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
|
||||
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
|
||||
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
|
||||
protected abstract ActivityImplementationContext GetPowerShell(NativeActivityContext context);
|
||||
|
||||
@@ -2646,7 +2646,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrievs all of the default arguments from the type and its parents.
|
||||
/// Retrieve all of the default arguments from the type and its parents.
|
||||
/// </summary>
|
||||
/// <returns>All of the default arguments from the type and its parents</returns>
|
||||
protected IEnumerable<PSActivityArgumentInfo> GetActivityArguments()
|
||||
@@ -2727,7 +2727,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <param name="implementationContext">The activity context to use</param>
|
||||
/// <param name="psActivityContext">The powershell activity context.</param>
|
||||
/// <param name="ActivityType">The activity type.</param>
|
||||
/// <param name="PrepareSession">The prepare session delgate.</param>
|
||||
/// <param name="PrepareSession">The prepare session delegate.</param>
|
||||
/// <param name="activityObject">This object representing activity.</param>
|
||||
private static void UpdatePowerShell(ActivityImplementationContext implementationContext, PSActivityContext psActivityContext, Type ActivityType, PrepareSessionDelegate PrepareSession, object activityObject)
|
||||
{
|
||||
@@ -3421,7 +3421,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
commandToRun.Runspace.StateChanged += psActivityContext.HandleRunspaceStateChanged;
|
||||
|
||||
// Invocation state can be in running or final state in reconnect scenario
|
||||
// Command should be invoked only when invocation state is not strted,
|
||||
// Command should be invoked only when invocation state is not started,
|
||||
// during the normal scenario, invocation state is always NotStarted as runspace is just assigned
|
||||
if (commandToRun.InvocationStateInfo.State == PSInvocationState.NotStarted)
|
||||
{
|
||||
@@ -4101,13 +4101,13 @@ namespace Microsoft.PowerShell.Activities
|
||||
{
|
||||
Dbg.Assert(activityEnvironment.Modules.Count > 0,
|
||||
"When PSActivityEnvironment is specified and modules are imported, PSActivityEnvironment.Modules need to be populated");
|
||||
// Setting erroaction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
// Setting erroraction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
ps.AddCommand("Import-Module").AddParameter("Name", activityEnvironment.Modules).AddParameter(
|
||||
"ErrorAction", ActionPreference.Stop);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Setting erroaction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
// Setting erroraction to stop for import-module since they are required modules. If not present, stop the execution
|
||||
ps.AddCommand("Import-Module").AddParameter("Name", args.ActivityParameters.PSRequiredModules).AddParameter(
|
||||
"ErrorAction", ActionPreference.Stop);
|
||||
}
|
||||
@@ -5773,7 +5773,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The paththat the workflow was imported from.
|
||||
/// The path that the workflow was imported from.
|
||||
/// </summary>
|
||||
public string PSWorkflowPath
|
||||
{
|
||||
@@ -5933,14 +5933,14 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <summary>
|
||||
/// Get all additional extensions.
|
||||
/// </summary>
|
||||
/// <returns>Retruns no extensions.</returns>
|
||||
/// <returns>Returns no extensions.</returns>
|
||||
public IEnumerable<object> GetAdditionalExtensions()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the instance of the worfkow.
|
||||
/// Set the instance of the workflow.
|
||||
/// </summary>
|
||||
/// <param name="instance">The workflow instance proxy.</param>
|
||||
public void SetInstance(WorkflowInstanceProxy instance)
|
||||
@@ -5954,7 +5954,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <param name="bookmark">The bookmark where it will be resumed.</param>
|
||||
/// <param name="value">The value which need to be passed to the bookmark.</param>
|
||||
/// <param name="callback">The call back function when resuming the bookmark.</param>
|
||||
/// <param name="state">The state of the aysn call.</param>
|
||||
/// <param name="state">The state of the async call.</param>
|
||||
/// <returns>Returns the result of async call.</returns>
|
||||
public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, AsyncCallback callback, object state)
|
||||
{
|
||||
@@ -5964,7 +5964,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <summary>
|
||||
/// End resuming bookmark.
|
||||
/// </summary>
|
||||
/// <param name="asyncResult">The result of asyc all.</param>
|
||||
/// <param name="asyncResult">The result of async all.</param>
|
||||
/// <returns>Returns the bookmark resumption result.</returns>
|
||||
public BookmarkResumptionResult EndResumeBookmark(IAsyncResult asyncResult)
|
||||
{
|
||||
@@ -5989,7 +5989,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Abstract base contining the common members and invocation code for the WMI cmdlets.
|
||||
/// Abstract base containing the common members and invocation code for the WMI cmdlets.
|
||||
/// </summary>
|
||||
public abstract class WmiActivity : PSActivity
|
||||
{
|
||||
@@ -6083,7 +6083,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
/// <summary>
|
||||
/// Generic version of the function to handle value types
|
||||
/// </summary>
|
||||
/// <typeparam name="T">THe type of the intende argument</typeparam>
|
||||
/// <typeparam name="T">The type of the intended argument</typeparam>
|
||||
/// <param name="parameterName"></param>
|
||||
/// <param name="parameterDefaults"></param>
|
||||
/// <returns></returns>
|
||||
@@ -6199,7 +6199,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
ActivityImplementationContext implementationContext = GetPowerShell(context);
|
||||
System.Management.Automation.PowerShell invoker = implementationContext.PowerShellInstance;
|
||||
|
||||
// Don't add the conputer if it's empty or localhost...
|
||||
// Don't add the computer if it's empty or localhost...
|
||||
if (!String.IsNullOrEmpty(computername) && !String.Equals(computername, "localhost", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
invoker.AddParameter("ComputerName", computername);
|
||||
@@ -6293,7 +6293,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
|
||||
/// <summary>
|
||||
/// Default implementation of WriteError - if the error record contains
|
||||
/// an exceptin then that exception will be thrown. If not, then an
|
||||
/// an exception then that exception will be thrown. If not, then an
|
||||
/// InvalidOperationException will be constructed and thrown.
|
||||
/// </summary>
|
||||
/// <param name="errorRecord">Error record instance to process</param>
|
||||
|
||||
+3
-3
@@ -88,7 +88,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
private readonly ConcurrentDictionary<string, bool> _inProcActivityLookup = new ConcurrentDictionary<string, bool>();
|
||||
|
||||
/// <summary>
|
||||
/// Runtime should be provided for excessing the runtime activity mode
|
||||
/// Runtime should be provided for accessing the runtime activity mode
|
||||
/// </summary>
|
||||
protected PSActivityHostController(PSWorkflowRuntime runtime)
|
||||
{
|
||||
@@ -172,9 +172,9 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This property indentifies if the Activity controller is running in disconnected mode
|
||||
/// This property identifies if the Activity controller is running in disconnected mode
|
||||
/// or not. If it is running in disconnected mode then all the output and data streams will be
|
||||
/// provied as new objects.
|
||||
/// proxied as new objects.
|
||||
/// </summary>
|
||||
public virtual bool SupportDisconnectedPSStreams
|
||||
{
|
||||
|
||||
+2
-2
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method that needs to be overrided to perform the actual
|
||||
/// Method that needs to be overridden to perform the actual
|
||||
/// cleanup action
|
||||
/// </summary>
|
||||
/// <param name="args">RunCommandsArguments</param>
|
||||
@@ -90,7 +90,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method that needs to be overrided to perform the actual
|
||||
/// Method that needs to be overridden to perform the actual
|
||||
/// cleanup action
|
||||
/// </summary>
|
||||
/// <param name="args">RunCommandsArguments</param>
|
||||
|
||||
+1
-1
@@ -428,7 +428,7 @@ namespace Microsoft.PowerShell.Activities
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Provides additional functionalty for CIM activity implementations.
|
||||
/// Provides additional functionality for CIM activity implementations.
|
||||
/// </summary>
|
||||
public class CimActivityImplementationContext : ActivityImplementationContext
|
||||
{
|
||||
|
||||
+2
-2
@@ -73,7 +73,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disope implementation.
|
||||
/// Dispose implementation.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disope implementation.
|
||||
/// Dispose implementation.
|
||||
/// </summary>
|
||||
/// <param name="disposing"></param>
|
||||
private void Dispose(bool disposing)
|
||||
|
||||
+1
-1
@@ -359,7 +359,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Synchonization object available to derived classes.
|
||||
/// Synchronization object available to derived classes.
|
||||
/// </summary>
|
||||
protected object SyncLock
|
||||
{
|
||||
|
||||
+1
-1
@@ -1524,7 +1524,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check assigments to known workflow variables.
|
||||
// Check assignments to known workflow variables.
|
||||
foreach (var workflowVariable in allWFVariables)
|
||||
{
|
||||
variableName = workflowVariable.Key;
|
||||
|
||||
+16
-16
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that the System.Activities.WorkflowApplication should persist and unload the workflow.
|
||||
/// The job will remain in running state because aysnc operation (out of proc or remote operation) is in progress.
|
||||
/// The job will remain in running state because async operation (out of proc or remote operation) is in progress.
|
||||
/// The System.Activities.WorkflowApplication will be loaded when async operation gets completed.
|
||||
/// </summary>
|
||||
Unload = 3,
|
||||
@@ -336,7 +336,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
// This method is first time called from OnResumeBookmark, if no resume required it's entry
|
||||
// needs to be removed fromt the collection as activity execution has finsihed.
|
||||
// needs to be removed fromt the collection as activity execution has finished.
|
||||
// When an activity entry is removed, remoteActivityState will be persisted
|
||||
// as part of whole workflow application persistence at the end of activity completion
|
||||
if (activityResumeRequired == false)
|
||||
@@ -605,7 +605,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
_structuredTracer.Correlate();
|
||||
Tracer.WriteMessage("Workflow Application is completed in Aborted state.");
|
||||
|
||||
// if the supend in progress and there is some error it result in the aborted event
|
||||
// if the suspend in progress and there is some error it result in the aborted event
|
||||
// explicit faulting the workflow.
|
||||
if (this.callSuspendDelegate)
|
||||
{
|
||||
@@ -665,7 +665,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
return;
|
||||
|
||||
// this lock will ensure the synchronization between the persistence and the force suspend (abort) method.
|
||||
// if persitence is going on then it will hold the execution of force suspend
|
||||
// if persistence is going on then it will hold the execution of force suspend
|
||||
lock (ReactivateSync)
|
||||
{
|
||||
if (Disposed)
|
||||
@@ -702,7 +702,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// this may occure in the race condition if there are many persitable workflow and then you tried to shutdown them.
|
||||
// this may occur in the race condition if there are many persistable workflow and then you tried to shutdown them.
|
||||
Tracer.WriteMessage("PSWorkflowApplicationInstance", "HandlePersistence", id, "There has been exception while persisting the workflow in the background thread.");
|
||||
Tracer.TraceException(e);
|
||||
}
|
||||
@@ -718,7 +718,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// this may occure in the race condition if there is a persitable workflow which is getting stopped and at the same persit is called.
|
||||
// this may occur in the race condition if there is a persistable workflow which is getting stopped and at the same persist is called.
|
||||
Tracer.WriteMessage("PSWorkflowApplicationInstance", "SafelyHandleFaultedState", id, "There has been exception while marking the workflow in faulted state in the background thread.");
|
||||
Tracer.TraceException(e);
|
||||
}
|
||||
@@ -778,7 +778,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
_structuredTracer.Correlate();
|
||||
Tracer.WriteMessage("Workflow Application is idle.");
|
||||
|
||||
// there might be a possiblity that stop job is being called by wfApp is Idle handling it properly so all Async execution .
|
||||
// there might be a possibility that stop job is being called by wfApp is Idle handling it properly so all Async execution .
|
||||
if (_job.JobStateInfo.State == JobState.Stopping)
|
||||
{
|
||||
this.StopBookMarkedWorkflow();
|
||||
@@ -875,9 +875,9 @@ namespace Microsoft.PowerShell.Workflow
|
||||
Tracer.WriteMessage("Workflow Application is completed in Faulted state.");
|
||||
|
||||
// there might be possible of race condition here in case of Winrm shutdown. if the activity is
|
||||
// excuting on loop back winrm process so there might be possibility that the winrm shuts down the
|
||||
// activity process fist and cuasing the workflow to fail in the M3P process.
|
||||
// in order to avoid those situations we will ignore the remote exception if the shutdwon is in progress
|
||||
// executing on loop back winrm process so there might be possibility that the winrm shuts down the
|
||||
// activity process fist and causing the workflow to fail in the M3P process.
|
||||
// in order to avoid those situations we will ignore the remote exception if the shutdown is in progress
|
||||
if (WorkflowJobSourceAdapter.GetInstance().IsShutdownInProgress)
|
||||
{
|
||||
if (e.GetType() == typeof(RemoteException))
|
||||
@@ -1620,7 +1620,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
{
|
||||
// this flag ensures that the workflow application will not be loaded again since we are stopping the workflow instance
|
||||
IsTerminalStateAction = true;
|
||||
// this flag ensures that we don't unload the wfApplication instance since we are stopping the worklfow.
|
||||
// this flag ensures that we don't unload the wfApplication instance since we are stopping the workflow.
|
||||
PersistIdleTimerInProgressOrTriggered = false;
|
||||
}
|
||||
|
||||
@@ -1916,7 +1916,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
// saving the workflow application handle into the temporary variable
|
||||
// then unregistering the workflow application handle
|
||||
// temporary varialbe will be used to call abort if workflow is in running state
|
||||
// temporary variable will be used to call abort if workflow is in running state
|
||||
WorkflowApplication wf = this.workflowApplication;
|
||||
DisposeWorkflowApplication();
|
||||
|
||||
@@ -2046,7 +2046,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
_paramDefaults.Parameters[Constants.PrivateMetadata] = this.PSWorkflowContext.PrivateMetadata;
|
||||
}
|
||||
|
||||
// Job realted parameters
|
||||
// Job related parameters
|
||||
if (this.PSWorkflowContext.JobMetadata.ContainsKey(Constants.JobMetadataName))
|
||||
{
|
||||
_paramDefaults.Parameters[TranslateMetaDataName(Constants.JobMetadataName)] =
|
||||
@@ -2351,7 +2351,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
{
|
||||
// Workflow is currently in booked marked state
|
||||
// we will try to cancel all async operations
|
||||
// and then perform the termial tasks related to stop workflow
|
||||
// and then perform the terminal tasks related to stop workflow
|
||||
|
||||
if (Disposed)
|
||||
return;
|
||||
@@ -2390,7 +2390,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
{
|
||||
// This is not a full fix:
|
||||
// there could be a race condition where we have taken the copy but context is removed from by activity and disposed in that case contextinstance.cancel will throw
|
||||
// there could be one more possiblity that is if copy has been made and after that activity adds a new context and will not get canceled and streams will get closed so async execution might throw
|
||||
// there could be one more possibility that is if copy has been made and after that activity adds a new context and will not get canceled and streams will get closed so async execution might throw
|
||||
// the solution is make every these operation on async execution collection thread safe
|
||||
|
||||
foreach (PSActivityContext psActivityContextInstance in this.asyncExecutionCollection.Values.ToList())
|
||||
@@ -2471,7 +2471,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
SetInternalUnloaded(true);
|
||||
|
||||
// Check for the race condition.
|
||||
// There could be possibilibly workflow application is unloaded because of terminal state is reached.
|
||||
// There could be possibility workflow application is unloaded because of terminal state is reached.
|
||||
if (this.workflowApplication != null)
|
||||
{
|
||||
try
|
||||
|
||||
+12
-12
@@ -58,7 +58,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
internal WaitHandle Running { get { return this.JobRunning; } }
|
||||
|
||||
/// <summary>
|
||||
/// Signaled when job finishes suspending or aboring
|
||||
/// Signaled when job finishes suspending or aborting
|
||||
/// </summary>
|
||||
internal WaitHandle SuspendedOrAborted { get { return this.JobSuspendedOrAborted; } }
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
private Dictionary<string, object> _jobMetadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
|
||||
private Dictionary<string, object> _privateMetadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
// Holds the collection of input objects recieved from the pipeline
|
||||
// Holds the collection of input objects received from the pipeline
|
||||
private PSDataCollection<PSObject> _inputCollection;
|
||||
|
||||
private ManualResetEvent _jobRunning;
|
||||
@@ -429,7 +429,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <param name="reason"></param>
|
||||
/// <returns>returns false if state tranition is not possible. Return value is required to update SQM perf counters</returns>
|
||||
/// <returns>returns false if state transition is not possible. Return value is required to update SQM perf counters</returns>
|
||||
private bool DoSetJobState(JobState state, Exception reason = null)
|
||||
{
|
||||
if (IsFinishedState(_previousState) || _isDisposed) return false;
|
||||
@@ -539,7 +539,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
{
|
||||
// If we're self-remoting, location becomes the default computer
|
||||
// and the PSComputerNames is passed in as an argument instead
|
||||
// of going to the ubiquitious parameters
|
||||
// of going to the ubiquitous parameters
|
||||
_location = Constants.DefaultComputerName;
|
||||
string parameterName = dynamicActivity.Properties.First(x => x.Name.Equals(Constants.ComputerName, StringComparison.CurrentCultureIgnoreCase)).Name;
|
||||
_workflowParameters[parameterName] = LanguagePrimitives.ConvertTo<string[]>(parameter.Value);
|
||||
@@ -603,7 +603,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
break;
|
||||
|
||||
case Constants.PSParameterCollection:
|
||||
// Remove this one from the parameter collecton...
|
||||
// Remove this one from the parameter collection...
|
||||
break;
|
||||
case Constants.PSRunningTime:
|
||||
case Constants.PSElapsedTime:
|
||||
@@ -792,7 +792,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
throw new InvalidJobStateException(JobStateInfo.State, Resources.ResumeNotValidState);
|
||||
}
|
||||
|
||||
// this will avoid the race codition between two resume requests and both are trying to load instance and loadstreams.
|
||||
// this will avoid the race condition between two resume requests and both are trying to load instance and loadstreams.
|
||||
_resuming = true;
|
||||
}
|
||||
|
||||
@@ -1123,7 +1123,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
_tracer.WriteMessage(ClassNameTrace, "OnWorkflowSuspended", WorkflowGuidForTraces, this, "BEGIN");
|
||||
|
||||
// CheckStopping() was not thread safe.
|
||||
// Now DoSetJobState handles the invalid state transion from stopping to suspended
|
||||
// Now DoSetJobState handles the invalid state transition from stopping to suspended
|
||||
if (DoSetJobState(JobState.Suspended))
|
||||
{
|
||||
StructuredTracer.WorkflowUnloaded(_workflowInstance.Id);
|
||||
@@ -1646,7 +1646,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
#region Overrides of Job2
|
||||
|
||||
/// <summary>
|
||||
/// Implementation of this method will allow the delayed loadig of streams.
|
||||
/// Implementation of this method will allow the delayed loading of streams.
|
||||
/// </summary>
|
||||
protected override void DoLoadJobStreams()
|
||||
{
|
||||
@@ -1686,7 +1686,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
/// start a job. The job will be started with the parameters
|
||||
/// specified in StartParameters
|
||||
/// </summary>
|
||||
/// <remarks>It is redudant to have a method named StartJob
|
||||
/// <remarks>It is redundant to have a method named StartJob
|
||||
/// on a job class. However, this is done so as to avoid
|
||||
/// an FxCop violation "CA1716:IdentifiersShouldNotMatchKeywords"
|
||||
/// Stop and Resume are reserved keyworks in C# and hence cannot
|
||||
@@ -1716,7 +1716,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
catch (Exception e)
|
||||
{
|
||||
// Catching all exceptions is valid here because
|
||||
// Transfering exception with event arguments.
|
||||
// Transferring exception with event arguments.
|
||||
OnStartJobCompleted(new AsyncCompletedEventArgs(e, false, null));
|
||||
}
|
||||
#pragma warning restore 56500
|
||||
@@ -2037,7 +2037,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
catch (Exception e)
|
||||
{
|
||||
// Catching all exceptions is valid here because
|
||||
// Transfering exception with event arguments.
|
||||
// Transferring exception with event arguments.
|
||||
OnResumeJobCompleted(new AsyncCompletedEventArgs(e, false, null));
|
||||
}
|
||||
#pragma warning restore 56500
|
||||
@@ -2075,7 +2075,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
catch (Exception e)
|
||||
{
|
||||
// Catching all exceptions is valid here because
|
||||
// Transfering exception with event arguments.
|
||||
// Transferring exception with event arguments.
|
||||
OnResumeJobCompleted(new AsyncCompletedEventArgs(e, false, null));
|
||||
}
|
||||
#pragma warning restore 56500
|
||||
|
||||
+1
-1
@@ -173,7 +173,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
psPersitValue = context.PSWorkflowCommonParameters[Constants.Persist] as bool?;
|
||||
}
|
||||
|
||||
// check for invocation time pspersist value if not true then there is a possiblility that workflow is not suspendable.
|
||||
// check for invocation time pspersist value if not true then there is a possibility that workflow is not suspendable.
|
||||
if (psPersitValue == null || (psPersitValue == false))
|
||||
{
|
||||
// check for authoring time definition of persist activity
|
||||
|
||||
+5
-5
@@ -123,7 +123,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Disope implementation.
|
||||
/// Dispose implementation.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
@@ -132,7 +132,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disope implementation.
|
||||
/// Dispose implementation.
|
||||
/// </summary>
|
||||
/// <param name="disposing"></param>
|
||||
private void Dispose(bool disposing)
|
||||
@@ -310,7 +310,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
{
|
||||
lock (_syncObject)
|
||||
{
|
||||
// Start the shudown timer when there is no inprogess job, no pending job requests and no active sessions
|
||||
// Start the shutdown timer when there is no inprogress job, no pending job requests and no active sessions
|
||||
// Otherwise disable it
|
||||
if (_activeSessionsCount == 0 && _inProgressCount == 0 && _pendingQueue.Count == 0)
|
||||
{
|
||||
@@ -395,7 +395,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
if (_shutdownTimer != null)
|
||||
{
|
||||
// Start the shudown timer when there is no inprogess job, no pending job requests and no active sessions
|
||||
// Start the shutdown timer when there is no inprogress job, no pending job requests and no active sessions
|
||||
// Otherwise disable it
|
||||
if (_activeSessionsCount == 0 && _inProgressCount == 0 && _pendingQueue.Count == 0)
|
||||
{
|
||||
@@ -1118,7 +1118,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
if ((filter.Value is string || filter.Value is WildcardPattern) && value is string)
|
||||
{
|
||||
// at this point we are guaranteed that the key exists somewehere
|
||||
// at this point we are guaranteed that the key exists somewhere
|
||||
WildcardPattern pattern;
|
||||
string stringValue = filter.Value as string;
|
||||
if (stringValue != null)
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
private Dictionary<string, object> _psWorkflowCommonParameters;
|
||||
|
||||
/// <summary>
|
||||
/// The metadata, which contains all the information related to job and client like, job-id, connnection-id and application-id etc.
|
||||
/// The metadata, which contains all the information related to job and client like, job-id, connection-id and application-id etc.
|
||||
/// </summary>
|
||||
private Dictionary<string, object> jobMetadata;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
/// </summary>
|
||||
/// <param name="workflowParameters">The parameters, which need to be passed to the workflow engine.</param>
|
||||
/// <param name="workflowCommonParameters">The ubiquitous parameters, which are also passed to the engine.</param>
|
||||
/// <param name="jobMetadata">The metadata, which contains all the information related to job and client like, job-id, connnection-id and application-id etc.</param>
|
||||
/// <param name="jobMetadata">The metadata, which contains all the information related to job and client like, job-id, connection-id and application-id etc.</param>
|
||||
/// <param name="privateMetadata">The metadata, which is specific to the caller and doesn't contain any information related to workflow execution.</param>
|
||||
public PSWorkflowContext(
|
||||
Dictionary<string, object> workflowParameters,
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
internal string BuildLogPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The runtime gnerated assembly name.
|
||||
/// The runtime generated assembly name.
|
||||
/// </summary>
|
||||
internal string AssemblyName { get; set; }
|
||||
|
||||
|
||||
+1
-1
@@ -449,7 +449,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disope implementation.
|
||||
/// Dispose implementation.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retreive each type of tracking record and perform the corresponding fucntionality.
|
||||
/// Retrieve each type of tracking record and perform the corresponding functionality.
|
||||
/// </summary>
|
||||
/// <param name="record">Represents the tracking record.</param>
|
||||
/// <param name="timeout">Time out for the tracking to be completed.</param>
|
||||
|
||||
+1
-1
@@ -243,7 +243,7 @@ namespace Microsoft.PowerShell.Workflow
|
||||
|
||||
if (connectionInfo1.ProxyAccessType == ProxyAccessType.None)
|
||||
{
|
||||
return true; //stop here if no proxy acess type
|
||||
return true; //stop here if no proxy access type
|
||||
}
|
||||
|
||||
if (connectionInfo1.ProxyAuthentication != connectionInfo2.ProxyAuthentication)
|
||||
|
||||
Reference in new issue
Block a user