From 2aa9caf5a0cd5069645dd6afb450e18d73c02e01 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 1 Sep 2016 16:03:51 +0000 Subject: [PATCH] spelling: public identifiers in src/Microsoft.Management.Infrastructure.CimCmdlets --- .../CimCommandBase.cs | 8 ++++---- .../CimIndicationWatcher.cs | 4 ++-- .../CimRegisterCimIndication.cs | 12 ++++++------ ...Management.Infrastructure.CimCmdlets.Strings.resx | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs index 2ea726c77..dbf90255c 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs @@ -379,7 +379,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets } if (nameset.Count == 0) { - throw new PSArgumentException(Strings.UnableToResolvePareameterSetName); + throw new PSArgumentException(Strings.UnableToResolveParameterSetName); } else { @@ -433,7 +433,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { if (boundParameterSetName != null) { - throw new PSArgumentException(Strings.UnableToResolvePareameterSetName); + throw new PSArgumentException(Strings.UnableToResolveParameterSetName); } boundParameterSetName = parameterSetName; } @@ -445,7 +445,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets // throw if there are > 1 parameter set if (noMandatoryParameterSet.Count > 1) { - throw new PSArgumentException(Strings.UnableToResolvePareameterSetName); + throw new PSArgumentException(Strings.UnableToResolveParameterSetName); } else if (noMandatoryParameterSet.Count == 1) { @@ -462,7 +462,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets // throw if still can not find the parameter set name if (boundParameterSetName == null) { - throw new PSArgumentException(Strings.UnableToResolvePareameterSetName); + throw new PSArgumentException(Strings.UnableToResolveParameterSetName); } return boundParameterSetName; } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs index 608385fe2..91d9006f6 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs @@ -208,7 +208,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets string theNameSpace, string theQueryDialect, string theQueryExpression, - UInt32 theOpreationTimeout) + UInt32 theOperationTimeout) { enableRaisingEvents = false; status = Status.Default; @@ -220,7 +220,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.nameSpace = theNameSpace; this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect); this.queryExpression = theQueryExpression; - this.operationTimeout = theOpreationTimeout; + this.operationTimeout = theOperationTimeout; this.computerName = theComputerName; } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs index 535d84db3..d1635eb98 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs @@ -135,17 +135,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// - /// + /// public void RegisterCimIndication( string computerName, string nameSpace, string queryDialect, string queryExpression, - UInt32 opreationTimeout) + UInt32 operationTimeout) { DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression); this.TargetComputerName = computerName; - CimSessionProxy proxy = CreateSessionProxy(computerName, opreationTimeout); + CimSessionProxy proxy = CreateSessionProxy(computerName, operationTimeout); proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression); WaitForAckMessage(); } @@ -157,14 +157,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// - /// + /// /// throw if cimSession is null public void RegisterCimIndication( CimSession cimSession, string nameSpace, string queryDialect, string queryExpression, - UInt32 opreationTimeout) + UInt32 operationTimeout) { DebugHelper.WriteLogEx("queryDialect = '{0}'; queryExpression = '{1}'", 0, queryDialect, queryExpression); if (cimSession == null) @@ -172,7 +172,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets throw new ArgumentNullException(String.Format(CultureInfo.CurrentUICulture, Strings.NullArgument, @"cimSession")); } this.TargetComputerName = cimSession.ComputerName; - CimSessionProxy proxy = CreateSessionProxy(cimSession, opreationTimeout); + CimSessionProxy proxy = CreateSessionProxy(cimSession, operationTimeout); proxy.SubscribeAsync(nameSpace, queryDialect, queryExpression); WaitForAckMessage(); } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/resources/Microsoft.Management.Infrastructure.CimCmdlets.Strings.resx b/src/Microsoft.Management.Infrastructure.CimCmdlets/resources/Microsoft.Management.Infrastructure.CimCmdlets.Strings.resx index 90a60cd30..0087d0a09 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/resources/Microsoft.Management.Infrastructure.CimCmdlets.Strings.resx +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/resources/Microsoft.Management.Infrastructure.CimCmdlets.Strings.resx @@ -221,7 +221,7 @@ Unable to add property '{0}' to input object '{1}'. The class schema does not contain the property. {0} stand for property name, {1} stand for cim instance path. - + Unable to resolve the parameter set name. N/A