spelling: public identifiers in src/Microsoft.Management.Infrastructure.CimCmdlets
This commit is contained in:
parent
81a598f242
commit
2aa9caf5a0
|
@ -379,7 +379,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
}
|
}
|
||||||
if (nameset.Count == 0)
|
if (nameset.Count == 0)
|
||||||
{
|
{
|
||||||
throw new PSArgumentException(Strings.UnableToResolvePareameterSetName);
|
throw new PSArgumentException(Strings.UnableToResolveParameterSetName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -433,7 +433,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
{
|
{
|
||||||
if (boundParameterSetName != null)
|
if (boundParameterSetName != null)
|
||||||
{
|
{
|
||||||
throw new PSArgumentException(Strings.UnableToResolvePareameterSetName);
|
throw new PSArgumentException(Strings.UnableToResolveParameterSetName);
|
||||||
}
|
}
|
||||||
boundParameterSetName = parameterSetName;
|
boundParameterSetName = parameterSetName;
|
||||||
}
|
}
|
||||||
|
@ -445,7 +445,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
// throw if there are > 1 parameter set
|
// throw if there are > 1 parameter set
|
||||||
if (noMandatoryParameterSet.Count > 1)
|
if (noMandatoryParameterSet.Count > 1)
|
||||||
{
|
{
|
||||||
throw new PSArgumentException(Strings.UnableToResolvePareameterSetName);
|
throw new PSArgumentException(Strings.UnableToResolveParameterSetName);
|
||||||
}
|
}
|
||||||
else if (noMandatoryParameterSet.Count == 1)
|
else if (noMandatoryParameterSet.Count == 1)
|
||||||
{
|
{
|
||||||
|
@ -462,7 +462,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
// throw if still can not find the parameter set name
|
// throw if still can not find the parameter set name
|
||||||
if (boundParameterSetName == null)
|
if (boundParameterSetName == null)
|
||||||
{
|
{
|
||||||
throw new PSArgumentException(Strings.UnableToResolvePareameterSetName);
|
throw new PSArgumentException(Strings.UnableToResolveParameterSetName);
|
||||||
}
|
}
|
||||||
return boundParameterSetName;
|
return boundParameterSetName;
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,7 +208,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
string theNameSpace,
|
string theNameSpace,
|
||||||
string theQueryDialect,
|
string theQueryDialect,
|
||||||
string theQueryExpression,
|
string theQueryExpression,
|
||||||
UInt32 theOpreationTimeout)
|
UInt32 theOperationTimeout)
|
||||||
{
|
{
|
||||||
enableRaisingEvents = false;
|
enableRaisingEvents = false;
|
||||||
status = Status.Default;
|
status = Status.Default;
|
||||||
|
@ -220,7 +220,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
this.nameSpace = theNameSpace;
|
this.nameSpace = theNameSpace;
|
||||||
this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect);
|
this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect);
|
||||||
this.queryExpression = theQueryExpression;
|
this.queryExpression = theQueryExpression;
|
||||||
this.operationTimeout = theOpreationTimeout;
|
this.operationTimeout = theOperationTimeout;
|
||||||
this.computerName = theComputerName;
|
this.computerName = theComputerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,17 +135,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
/// <param name="nameSpace"></param>
|
/// <param name="nameSpace"></param>
|
||||||
/// <param name="queryDialect"></param>
|
/// <param name="queryDialect"></param>
|
||||||
/// <param name="queryExpression"></param>
|
/// <param name="queryExpression"></param>
|
||||||
/// <param name="opreationTimeout"></param>
|
/// <param name="operationTimeout"></param>
|
||||||
public void RegisterCimIndication(
|
public void RegisterCimIndication(
|
||||||
string computerName,
|
string computerName,
|
||||||
string nameSpace,
|
string nameSpace,
|
||||||
string queryDialect,
|
string queryDialect,
|
||||||
string queryExpression,
|
string queryExpression,
|
||||||
UInt32 opreationTimeout)
|
UInt32 operationTimeout)
|
||||||
{
|
{
|
||||||
DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression);
|
DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression);
|
||||||
this.TargetComputerName = computerName;
|
this.TargetComputerName = computerName;
|
||||||
CimSessionProxy proxy = CreateSessionProxy(computerName, opreationTimeout);
|
CimSessionProxy proxy = CreateSessionProxy(computerName, operationTimeout);
|
||||||
proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression);
|
proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression);
|
||||||
WaitForAckMessage();
|
WaitForAckMessage();
|
||||||
}
|
}
|
||||||
|
@ -157,14 +157,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
/// <param name="nameSpace"></param>
|
/// <param name="nameSpace"></param>
|
||||||
/// <param name="queryDialect"></param>
|
/// <param name="queryDialect"></param>
|
||||||
/// <param name="queryExpression"></param>
|
/// <param name="queryExpression"></param>
|
||||||
/// <param name="opreationTimeout"></param>
|
/// <param name="operationTimeout"></param>
|
||||||
/// <exception cref="ArgumentNullException">throw if cimSession is null</exception>
|
/// <exception cref="ArgumentNullException">throw if cimSession is null</exception>
|
||||||
public void RegisterCimIndication(
|
public void RegisterCimIndication(
|
||||||
CimSession cimSession,
|
CimSession cimSession,
|
||||||
string nameSpace,
|
string nameSpace,
|
||||||
string queryDialect,
|
string queryDialect,
|
||||||
string queryExpression,
|
string queryExpression,
|
||||||
UInt32 opreationTimeout)
|
UInt32 operationTimeout)
|
||||||
{
|
{
|
||||||
DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression);
|
DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression);
|
||||||
if (cimSession == null)
|
if (cimSession == null)
|
||||||
|
@ -172,7 +172,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
|
||||||
throw new ArgumentNullException(String.Format(CultureInfo.CurrentUICulture, Strings.NullArgument, @"cimSession"));
|
throw new ArgumentNullException(String.Format(CultureInfo.CurrentUICulture, Strings.NullArgument, @"cimSession"));
|
||||||
}
|
}
|
||||||
this.TargetComputerName = cimSession.ComputerName;
|
this.TargetComputerName = cimSession.ComputerName;
|
||||||
CimSessionProxy proxy = CreateSessionProxy(cimSession, opreationTimeout);
|
CimSessionProxy proxy = CreateSessionProxy(cimSession, operationTimeout);
|
||||||
proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression);
|
proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression);
|
||||||
WaitForAckMessage();
|
WaitForAckMessage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@
|
||||||
<value>Unable to add property '{0}' to input object '{1}'. The class schema does not contain the property.</value>
|
<value>Unable to add property '{0}' to input object '{1}'. The class schema does not contain the property.</value>
|
||||||
<comment>{0} stand for property name, {1} stand for cim instance path.</comment>
|
<comment>{0} stand for property name, {1} stand for cim instance path.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="UnableToResolvePareameterSetName" xml:space="preserve">
|
<data name="UnableToResolveParameterSetName" xml:space="preserve">
|
||||||
<value>Unable to resolve the parameter set name.</value>
|
<value>Unable to resolve the parameter set name.</value>
|
||||||
<comment>N/A</comment>
|
<comment>N/A</comment>
|
||||||
</data>
|
</data>
|
||||||
|
|
Loading…
Reference in a new issue