Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Microsoft.WSMan.Management/CredSSP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public class EnableWSManCredSSPCommand : WSManCredSSPCommandBase, IDisposable/*,

//private const string DelegateComputerParam = "DelegateComputer";
//private String[] delegatecomputer;
//private RuntimeDefinedParameterDictionary dyanmicParameters = new RuntimeDefinedParameterDictionary();
//private RuntimeDefinedParameterDictionary dynamicParameters = new RuntimeDefinedParameterDictionary();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how this works... Are these // marks not actually comments? Or is this file not compiled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mirichmo can you find someone who can comment on this? thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I researched the history and that's how the code was originally written in 2009 :)

I think it's safe to remove this commented-out code.


#endregion

Expand Down Expand Up @@ -544,7 +544,7 @@ object IDynamicParameters.GetDynamicParameters()
// return null if the role is not client.
if (!Role.Equals(ClientRole, StringComparison.OrdinalIgnoreCase))
{
return dyanmicParameters;
return dynamicParameters;
}

// Construct attributes for the DelegateComputer parameter
Expand All @@ -561,9 +561,9 @@ object IDynamicParameters.GetDynamicParameters()
DelegateComputerParam,
typeof(string[]),
delegateComputerAttributeCollection);
dyanmicParameters.Add(DelegateComputerParam, delegateComputer);
dynamicParameters.Add(DelegateComputerParam, delegateComputer);

return dyanmicParameters;
return dynamicParameters;

} // GetDynamicParameters*/

Expand Down Expand Up @@ -603,7 +603,7 @@ private void EnableClientSideSettings()
return;
}
// Extract delegateComputer information from dynamic parameters collection
//RuntimeDefinedParameter delegateComputerParameter = dyanmicParameters[DelegateComputerParam];
//RuntimeDefinedParameter delegateComputerParameter = dynamicParameters[DelegateComputerParam];
//delegatecomputer = (string[])delegateComputerParameter.Value;

string newxmlcontent = @"<cfg:Auth xmlns:cfg=""http://schemas.microsoft.com/wbem/wsman/1/config/client/auth""><cfg:CredSSP>true</cfg:CredSSP></cfg:Auth>";
Expand Down