mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
spelling: locals in src/Microsoft.WSMan.Management
This commit is contained in:
1 parent
c8dde73d15
commit
3cdb922cf0
3 files changed
+24
-24
No files matched your search
@@ -44,7 +44,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// Object contains the cache of the enumerate results for the cmdlet to execute.
|
||||
/// </summary>
|
||||
Dictionary<string, XmlDocument> enumarateMapping = new Dictionary<string, XmlDocument>();
|
||||
Dictionary<string, XmlDocument> enumerateMapping = new Dictionary<string, XmlDocument>();
|
||||
|
||||
/// <summary>
|
||||
/// Mapping of ResourceURI with the XML returned by the Get call.
|
||||
@@ -406,7 +406,7 @@ namespace Microsoft.WSMan.Management
|
||||
if (xmlListeners != null)
|
||||
{
|
||||
Hashtable KeyCache, ListenerObjCache;
|
||||
ProcessListernerObjects(xmlListeners, out ListenerObjCache, out KeyCache);
|
||||
ProcessListenerObjects(xmlListeners, out ListenerObjCache, out KeyCache);
|
||||
if (ListenerObjCache.Count > 0)
|
||||
{
|
||||
return true;
|
||||
@@ -1448,7 +1448,7 @@ namespace Microsoft.WSMan.Management
|
||||
if (xmlListeners != null)
|
||||
{
|
||||
Hashtable KeyCache, ListenerObjCache;
|
||||
ProcessListernerObjects(xmlListeners, out ListenerObjCache, out KeyCache);
|
||||
ProcessListenerObjects(xmlListeners, out ListenerObjCache, out KeyCache);
|
||||
if (KeyCache.Contains(childname))
|
||||
{
|
||||
return true;
|
||||
@@ -1962,7 +1962,7 @@ namespace Microsoft.WSMan.Management
|
||||
}
|
||||
else if (ContainerListenerOrCertMapping.Equals(WSManStringLiterals.containerListener))
|
||||
{
|
||||
ProcessListernerObjects(xmlResource, out CCache, out kCache);
|
||||
ProcessListenerObjects(xmlResource, out CCache, out kCache);
|
||||
}
|
||||
if (CCache != null && CCache.Count > 0)
|
||||
{
|
||||
@@ -2292,7 +2292,7 @@ namespace Microsoft.WSMan.Management
|
||||
|
||||
if (ResourceURI.EndsWith(WSManStringLiterals.containerListener, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
ProcessListernerObjects(xmlResource, out objcache, out Keyscache);
|
||||
ProcessListenerObjects(xmlResource, out objcache, out Keyscache);
|
||||
}
|
||||
else if (ResourceURI.EndsWith(WSManStringLiterals.containerCertMapping, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@@ -2677,7 +2677,7 @@ namespace Microsoft.WSMan.Management
|
||||
{
|
||||
XmlDocument xmlEnumResources = null;
|
||||
|
||||
if (!this.enumarateMapping.TryGetValue(ResourceURI, out xmlEnumResources))
|
||||
if (!this.enumerateMapping.TryGetValue(ResourceURI, out xmlEnumResources))
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -2696,7 +2696,7 @@ namespace Microsoft.WSMan.Management
|
||||
xmlEnumResources = new XmlDocument();
|
||||
strXmlValue = "<WsManResults>" + strXmlValue + "</WsManResults>";
|
||||
xmlEnumResources.LoadXml(strXmlValue);
|
||||
this.enumarateMapping.Add(ResourceURI, xmlEnumResources);
|
||||
this.enumerateMapping.Add(ResourceURI, xmlEnumResources);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3604,7 +3604,7 @@ namespace Microsoft.WSMan.Management
|
||||
}
|
||||
else if (ListenerOrCerMapping.Equals(WSManStringLiterals.containerListener))
|
||||
{
|
||||
ProcessListernerObjects(xmlResource, out Objcache, out Keyscache);
|
||||
ProcessListenerObjects(xmlResource, out Objcache, out Keyscache);
|
||||
}
|
||||
else
|
||||
{ return; }
|
||||
@@ -3665,7 +3665,7 @@ namespace Microsoft.WSMan.Management
|
||||
Hashtable Objcache, Keyscache;
|
||||
if (ContainerListenerOrClientCert.Equals(WSManStringLiterals.containerListener, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
ProcessListernerObjects(xmlResource, out Objcache, out Keyscache);
|
||||
ProcessListenerObjects(xmlResource, out Objcache, out Keyscache);
|
||||
}
|
||||
else if (ContainerListenerOrClientCert.Equals(WSManStringLiterals.containerClientCertificate, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@@ -3715,7 +3715,7 @@ namespace Microsoft.WSMan.Management
|
||||
}
|
||||
else
|
||||
{
|
||||
ProcessListernerObjects(xmlresources, out ResourcesCache, out KeysCache);
|
||||
ProcessListenerObjects(xmlresources, out ResourcesCache, out KeysCache);
|
||||
}
|
||||
if (KeysCache.Contains(childname))
|
||||
{
|
||||
@@ -3950,7 +3950,7 @@ namespace Microsoft.WSMan.Management
|
||||
}
|
||||
else
|
||||
{
|
||||
ProcessListernerObjects(outxml, out objcache, out KeysCache);
|
||||
ProcessListenerObjects(outxml, out objcache, out KeysCache);
|
||||
}
|
||||
|
||||
String PathChecked = host + WSManStringLiterals.DefaultPathSeparator + parentListenerOrCert;
|
||||
@@ -4644,7 +4644,7 @@ namespace Microsoft.WSMan.Management
|
||||
Keyscache = kCache;
|
||||
}
|
||||
|
||||
private void ProcessListernerObjects(XmlDocument xmlListeners, out Hashtable listenercache, out Hashtable Keyscache)
|
||||
private void ProcessListenerObjects(XmlDocument xmlListeners, out Hashtable listenercache, out Hashtable Keyscache)
|
||||
{
|
||||
Hashtable lCache = new Hashtable();
|
||||
Hashtable kCache = new Hashtable();
|
||||
@@ -4871,11 +4871,11 @@ namespace Microsoft.WSMan.Management
|
||||
// ArrayList SecurityLvl = null;
|
||||
if (xmlSecurity != null)
|
||||
{
|
||||
XmlNodeList nodelistSecutiry = xmlSecurity.GetElementsByTagName(WSManStringLiterals.containerSecurity);
|
||||
if (nodelistSecutiry.Count > 0)
|
||||
XmlNodeList nodelistSecurity = xmlSecurity.GetElementsByTagName(WSManStringLiterals.containerSecurity);
|
||||
if (nodelistSecurity.Count > 0)
|
||||
{
|
||||
//SecurityLvl = new ArrayList();
|
||||
foreach (XmlElement xe in nodelistSecutiry)
|
||||
foreach (XmlElement xe in nodelistSecurity)
|
||||
{
|
||||
bool ExactMatchFound = false;
|
||||
PSObject objSecurity = new PSObject();
|
||||
|
||||
@@ -440,7 +440,7 @@ namespace Microsoft.WSMan.Management
|
||||
|
||||
//private const string DelegateComputerParam = "DelegateComputer";
|
||||
//private String[] delegatecomputer;
|
||||
//private RuntimeDefinedParameterDictionary dyanmicParameters = new RuntimeDefinedParameterDictionary();
|
||||
//private RuntimeDefinedParameterDictionary dynamicParameters = new RuntimeDefinedParameterDictionary();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -544,7 +544,7 @@ namespace Microsoft.WSMan.Management
|
||||
// return null if the role is not client.
|
||||
if (!Role.Equals(ClientRole, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return dyanmicParameters;
|
||||
return dynamicParameters;
|
||||
}
|
||||
|
||||
// Construct attributes for the DelegateComputer parameter
|
||||
@@ -561,9 +561,9 @@ namespace Microsoft.WSMan.Management
|
||||
DelegateComputerParam,
|
||||
typeof(string[]),
|
||||
delegateComputerAttributeCollection);
|
||||
dyanmicParameters.Add(DelegateComputerParam, delegateComputer);
|
||||
dynamicParameters.Add(DelegateComputerParam, delegateComputer);
|
||||
|
||||
return dyanmicParameters;
|
||||
return dynamicParameters;
|
||||
|
||||
} // GetDynamicParameters*/
|
||||
|
||||
@@ -603,7 +603,7 @@ namespace Microsoft.WSMan.Management
|
||||
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>";
|
||||
|
||||
@@ -41,14 +41,14 @@ namespace Microsoft.WSMan.Management
|
||||
{
|
||||
get
|
||||
{
|
||||
return _proxyacesstype;
|
||||
return _proxyaccesstype;
|
||||
}
|
||||
set
|
||||
{
|
||||
_proxyacesstype = value;
|
||||
_proxyaccesstype = value;
|
||||
}
|
||||
}
|
||||
private ProxyAccessType _proxyacesstype;
|
||||
private ProxyAccessType _proxyaccesstype;
|
||||
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "ProxyAuthentication".
|
||||
@@ -253,7 +253,7 @@ namespace Microsoft.WSMan.Management
|
||||
objSessionOption.OperationTimeout = operationtimeout;
|
||||
objSessionOption.SkipRevocationCheck = skiprevocationcheck;
|
||||
//Proxy Settings
|
||||
objSessionOption.ProxyAccessType = _proxyacesstype;
|
||||
objSessionOption.ProxyAccessType = _proxyaccesstype;
|
||||
objSessionOption.ProxyAuthentication = proxyauthentication;
|
||||
|
||||
if (noencryption)
|
||||
|
||||
Reference in new issue
Block a user