From 4003bb362179cc16a0a2342b789badc61b660f9b Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Mon, 23 Nov 2020 11:06:25 +0000 Subject: [PATCH 1/2] Fix SA1642 https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1642.md --- .../CimAsyncOperation.cs | 1 + .../CimBaseAction.cs | 2 ++ .../CimCommandBase.cs | 7 +++++++ .../CimGetAssociatedInstance.cs | 1 + .../CimGetCimClass.cs | 2 ++ .../CimGetInstance.cs | 1 + .../CimIndicationWatcher.cs | 4 ++++ .../CimInvokeCimMethod.cs | 2 ++ .../CimNewCimInstance.cs | 2 ++ .../CimPromptUser.cs | 1 + .../CimRegisterCimIndication.cs | 3 +++ .../CimRemoveCimInstance.cs | 2 ++ .../CimResultObserver.cs | 14 +++++++++++++ .../CimSessionOperations.cs | 7 +++++++ .../CimSessionProxy.cs | 20 +++++++++++++++++++ .../CimSetCimInstance.cs | 2 ++ .../CimWriteError.cs | 2 ++ .../CimWriteMessage.cs | 1 + .../CimWriteProgress.cs | 1 + .../CimWriteResultObject.cs | 1 + .../CmdletOperation.cs | 5 +++++ .../GetCimAssociatedInstanceCommand.cs | 1 + .../GetCimClassCommand.cs | 1 + .../GetCimInstanceCommand.cs | 1 + .../GetCimSessionCommand.cs | 1 + .../InvokeCimMethodCommand.cs | 1 + .../NewCimInstanceCommand.cs | 1 + .../NewCimSessionOptionCommand.cs | 1 + .../RemoveCimInstanceCommand.cs | 1 + .../RemoveCimSessionCommand.cs | 1 + .../SetCimInstanceCommand.cs | 1 + 31 files changed, 91 insertions(+) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs index b0ee5009891..2743038f35f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs @@ -26,6 +26,7 @@ internal abstract class CimAsyncOperation : IDisposable #region Constructor /// + /// Initializes a new instance of the class. /// The constructor. /// protected CimAsyncOperation() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs index 939f6c047a5..617a7a6d3b0 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs @@ -17,6 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal abstract class CimBaseAction { /// + /// Initializes a new instance of the class. /// Constructor method. /// protected CimBaseAction() @@ -69,6 +70,7 @@ protected XOperationContextBase Context internal class CimSyncAction : CimBaseAction, IDisposable { /// + /// Initializes a new instance of the class. /// The constructor. /// public CimSyncAction() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs index b138c01b806..1c89ed26f71 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs @@ -25,6 +25,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal class ParameterDefinitionEntry { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -70,6 +71,7 @@ internal bool IsMandatory internal class ParameterSetEntry { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -81,6 +83,7 @@ internal ParameterSetEntry(UInt32 mandatoryParameterCount) } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -92,6 +95,7 @@ internal ParameterSetEntry(ParameterSetEntry toClone) } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -217,6 +221,7 @@ internal UInt32 SetMandatoryParameterCountAtBeginProcess internal class ParameterBinder { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -567,6 +572,7 @@ internal void SetParameter(object value, string parameterName) #region constructors /// + /// Initializes a new instance of the class. /// Constructor. /// internal CimBaseCommand() @@ -576,6 +582,7 @@ internal CimBaseCommand() } /// + /// Initializes a new instance of the class. /// Constructor. /// internal CimBaseCommand(Dictionary> parameters, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs index 707a0ea6275..4ba4bac55d9 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs @@ -17,6 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal sealed class CimGetAssociatedInstance : CimAsyncOperation { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs index 1901b12ed83..8ae10fb0447 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs @@ -17,6 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal class CimGetCimClassContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -104,6 +105,7 @@ internal string QualifierName internal sealed class CimGetCimClass : CimAsyncOperation { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs index d4471671c65..59b39515cbe 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs @@ -51,6 +51,7 @@ public object Process(object resultObject) internal class CimGetInstance : CimAsyncOperation { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs index f64316bd6c7..75f8227d532 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs @@ -56,6 +56,7 @@ public Exception Exception private readonly Exception exception; /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -108,6 +109,7 @@ public string Bookmark } /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -154,6 +156,7 @@ internal enum Status public event EventHandler CimIndicationArrived; /// + /// Initializes a new instance of the class. /// /// Constructor with given computerName, namespace, queryExpression and timeout /// @@ -176,6 +179,7 @@ public CimIndicationWatcher( } /// + /// Initializes a new instance of the class. /// /// Constructor with given cimsession, namespace, queryExpression and timeout /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs index 8030111fa90..47fcf0317d5 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs @@ -27,6 +27,7 @@ internal sealed class CimInvokeCimMethod : CimAsyncOperation internal class CimInvokeCimMethodContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -73,6 +74,7 @@ internal CimMethodParametersCollection ParametersCollection } /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs index ea69fa8f1c1..5b137fc4f4c 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs @@ -20,6 +20,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal class CimNewCimInstanceContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -44,6 +45,7 @@ internal CimNewCimInstanceContext( internal sealed class CimNewCimInstance : CimAsyncOperation { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs index 98fb4ed3fc8..3ce141a9122 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs @@ -22,6 +22,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal sealed class CimPromptUser : CimSyncAction { /// + /// Initializes a new instance of the class. /// Constructor. /// public CimPromptUser(string message, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs index ed547444adc..e902ae870bf 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs @@ -58,6 +58,7 @@ public CimSubscriptionResult Result private readonly CimSubscriptionResult result; /// + /// Initializes a new instance of the class. /// Constructor /// /// @@ -92,6 +93,7 @@ public Exception Exception private readonly Exception exception; /// + /// Initializes a new instance of the class. /// Constructor /// /// @@ -118,6 +120,7 @@ internal sealed class CimRegisterCimIndication : CimAsyncOperation public event EventHandler OnNewSubscriptionResult; /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs index 8af239ef67c..09bb249eaf0 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs @@ -17,6 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal class CimRemoveCimInstanceContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -39,6 +40,7 @@ internal CimRemoveCimInstanceContext(string theNamespace, internal sealed class CimRemoveCimInstance : CimGetInstance { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs index 19040bfa3e4..452da5661da 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs @@ -32,6 +32,7 @@ public enum AsyncResultType internal class CimResultContext { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -64,6 +65,7 @@ internal object ErrorSource internal abstract class AsyncResultEventArgsBase : EventArgs { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -80,6 +82,7 @@ protected AsyncResultEventArgsBase( } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -117,6 +120,7 @@ protected AsyncResultEventArgsBase( internal class AsyncResultCompleteEventArgs : AsyncResultEventArgsBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -139,6 +143,7 @@ public AsyncResultCompleteEventArgs( internal class AsyncResultObjectEventArgs : AsyncResultEventArgsBase { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -164,6 +169,7 @@ public AsyncResultObjectEventArgs( internal class AsyncResultErrorEventArgs : AsyncResultEventArgsBase { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -179,6 +185,7 @@ public AsyncResultErrorEventArgs( } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -222,6 +229,7 @@ internal class CimResultObserver : IObserver public event EventHandler OnNewResult; /// + /// Initializes a new instance of the class. /// Constructor. /// /// object that issued the operation. @@ -233,6 +241,7 @@ public CimResultObserver(CimSession session, IObservable observable) } /// + /// Initializes a new instance of the class. /// Constructor. /// /// object that issued the operation. @@ -362,6 +371,7 @@ protected CimSession CurrentSession internal class CimSubscriptionResultObserver : CimResultObserver { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -372,6 +382,7 @@ public CimSubscriptionResultObserver(CimSession session, IObservable obs } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -401,6 +412,7 @@ public override void OnNext(CimSubscriptionResult value) internal class CimMethodResultObserver : CimResultObserver { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -411,6 +423,7 @@ public CimMethodResultObserver(CimSession session, IObservable observabl } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -494,6 +507,7 @@ internal string ClassName internal class IgnoreResultObserver : CimResultObserver { /// + /// Initializes a new instance of the class. /// Constructor. /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs index fb9626dd061..81adabc9a2f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs @@ -264,6 +264,7 @@ internal class CimSessionState : IDisposable #endregion /// + /// Initializes a new instance of the class. /// /// The constructor. /// @@ -785,6 +786,7 @@ internal class CimSessionBase #region constructor /// + /// Initializes a new instance of the class. /// The constructor. /// public CimSessionBase() @@ -908,6 +910,7 @@ internal class CimNewSession : CimSessionBase, IDisposable internal class CimTestCimSessionContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// The constructor. /// @@ -938,6 +941,7 @@ internal CimSessionWrapper CimSessionWrapper } /// + /// Initializes a new instance of the class. /// /// The constructor. /// @@ -1130,6 +1134,7 @@ protected virtual void Dispose(bool disposing) internal class CimGetSession : CimSessionBase { /// + /// Initializes a new instance of the class. /// The constructor. /// public CimGetSession() : base() @@ -1212,6 +1217,7 @@ internal class CimRemoveSession : CimSessionBase internal static readonly string RemoveCimSessionActionName = "Remove CimSession"; /// + /// Initializes a new instance of the class. /// Constructor. /// public CimRemoveSession() : base() @@ -1282,6 +1288,7 @@ public void RemoveCimSession(RemoveCimSessionCommand cmdlet) internal class CimTestSession : CimAsyncOperation { /// + /// Initializes a new instance of the class. /// Constructor. /// internal CimTestSession() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs index ec0ac65eab3..2931d932653 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs @@ -65,6 +65,7 @@ internal CimSessionProxy Proxy internal class InvocationContext { /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -78,6 +79,7 @@ internal InvocationContext(CimSessionProxy proxy) } /// + /// Initializes a new instance of the class. /// Constructor. /// /// @@ -135,6 +137,7 @@ internal interface IObjectPreProcess internal sealed class CmdletActionEventArgs : EventArgs { /// + /// Initializes a new instance of the class. /// Constructor. /// /// CimBaseAction object bound to the event. @@ -152,6 +155,7 @@ public CmdletActionEventArgs(CimBaseAction action) internal sealed class OperationEventArgs : EventArgs { /// + /// Initializes a new instance of the class. /// Constructor. /// /// Object used to cancel the operation. @@ -317,6 +321,7 @@ internal static void RemoveCimSessionFromTemporaryCache(CimSession session) #region constructors /// + /// Initializes a new instance of the class. /// Then create wrapper object by given CimSessionProxy object. /// /// @@ -331,6 +336,7 @@ public CimSessionProxy(CimSessionProxy proxy) } /// + /// Initializes a new instance of the class. /// Create by given computer name. /// Then create wrapper object. /// @@ -342,6 +348,7 @@ public CimSessionProxy(string computerName) } /// + /// Initializes a new instance of the class. /// Create by given computer name /// and session options. /// Then create wrapper object. @@ -355,6 +362,7 @@ public CimSessionProxy(string computerName, CimSessionOptions sessionOptions) } /// + /// Initializes a new instance of the class. /// Create by given computer name /// and cimInstance. Then create wrapper object. /// @@ -397,6 +405,7 @@ public CimSessionProxy(string computerName, CimInstance cimInstance) } /// + /// Initializes a new instance of the class. /// Create by given computer name, /// session options. /// @@ -410,6 +419,7 @@ public CimSessionProxy(string computerName, CimSessionOptions sessionOptions, Ci } /// + /// Initializes a new instance of the class. /// Create by given computer name. /// Then create wrapper object. /// @@ -422,6 +432,7 @@ public CimSessionProxy(string computerName, CimOperationOptions operOptions) } /// + /// Initializes a new instance of the class. /// Create wrapper object by given session object. /// /// @@ -431,6 +442,7 @@ public CimSessionProxy(CimSession session) } /// + /// Initializes a new instance of the class. /// Create wrapper object by given session object. /// /// @@ -1969,6 +1981,7 @@ internal class CimSessionProxyTestConnection : CimSessionProxy #region constructors /// + /// Initializes a new instance of the class. /// Create by given computer name /// and session options. /// Then create wrapper object. @@ -2018,6 +2031,7 @@ internal class CimSessionProxyGetCimClass : CimSessionProxy #region constructors /// + /// Initializes a new instance of the class. /// Create by given computer name. /// Then create wrapper object. /// @@ -2028,6 +2042,7 @@ public CimSessionProxyGetCimClass(string computerName) } /// + /// Initializes a new instance of the class. /// Create by given computer name /// and session options. /// Then create wrapper object. @@ -2169,6 +2184,7 @@ internal class CimSessionProxyNewCimInstance : CimSessionProxy #region constructors /// + /// Initializes a new instance of the class. /// Create by given computer name. /// Then create wrapper object. /// @@ -2180,6 +2196,7 @@ public CimSessionProxyNewCimInstance(string computerName, CimNewCimInstance oper } /// + /// Initializes a new instance of the class. /// Create by given computer name /// and session options. /// Then create wrapper object. @@ -2249,6 +2266,7 @@ internal class CimSessionProxySetCimInstance : CimSessionProxy { #region constructors /// + /// Initializes a new instance of the class. /// Create by given object. /// Then create wrapper object. /// @@ -2261,6 +2279,7 @@ public CimSessionProxySetCimInstance(CimSessionProxy originalProxy, bool passThr } /// + /// Initializes a new instance of the class. /// Create by given computer name. /// Then create wrapper object. /// @@ -2276,6 +2295,7 @@ public CimSessionProxySetCimInstance(string computerName, } /// + /// Initializes a new instance of the class. /// Create by given computer name /// and session options. /// Then create wrapper object. diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs index 0a8c49dfb50..759ddc8c118 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs @@ -19,6 +19,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal class CimSetCimInstanceContext : XOperationContextBase { /// + /// Initializes a new instance of the class. /// /// Constructor /// @@ -87,6 +88,7 @@ internal bool PassThru internal sealed class CimSetCimInstance : CimGetInstance { /// + /// Initializes a new instance of the class. /// /// Constructor /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs index 0f64aad70c9..ded78bc343f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs @@ -317,6 +317,7 @@ internal static ErrorCategory ConvertCimErrorToErrorCategory(CimInstance cimErro internal sealed class CimWriteError : CimSyncAction { /// + /// Initializes a new instance of the class. /// Constructor with an error. /// /// @@ -327,6 +328,7 @@ public CimWriteError(CimInstance error, InvocationContext context) } /// + /// Initializes a new instance of the class. /// Construct with an exception object. /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs index 9a556b68c5e..6ac6c9481e2 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs @@ -45,6 +45,7 @@ internal string Message #endregion /// + /// Initializes a new instance of the class. /// Constructor method. /// public CimWriteMessage(UInt32 channel, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs index 94b82e47c29..7604a7cfe6b 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs @@ -18,6 +18,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal sealed class CimWriteProgress : CimBaseAction { /// + /// Initializes a new instance of the class. /// Constructor. /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs index 492819c6535..d58a3ef54b8 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs @@ -15,6 +15,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal sealed class CimWriteResultObject : CimBaseAction { /// + /// Initializes a new instance of the class. /// Constructor. /// public CimWriteResultObject(object result, XOperationContextBase theContext) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs index 7379ce898f1..7f4406fb293 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs @@ -123,6 +123,7 @@ internal void ThrowTerminatingError(Exception exception, string operation) #endregion /// + /// Initializes a new instance of the class. /// Constructor method. /// public CmdletOperationBase(Cmdlet cmdlet) @@ -143,6 +144,7 @@ public CmdletOperationBase(Cmdlet cmdlet) internal class CmdletOperationRemoveCimInstance : CmdletOperationBase { /// + /// Initializes a new instance of the class. /// Constructor method. /// /// @@ -207,6 +209,7 @@ public override void WriteObject(object sendToPipeline, bool enumerateCollection internal class CmdletOperationSetCimInstance : CmdletOperationBase { /// + /// Initializes a new instance of the class. /// Constructor method. /// /// @@ -285,6 +288,7 @@ public override void WriteObject(object sendToPipeline, bool enumerateCollection internal class CmdletOperationInvokeCimMethod : CmdletOperationBase { /// + /// Initializes a new instance of the class. /// Constructor method. /// /// @@ -350,6 +354,7 @@ public override void WriteObject(object sendToPipeline, bool enumerateCollection internal class CmdletOperationTestCimSession : CmdletOperationBase { /// + /// Initializes a new instance of the class. /// Constructor method. /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs index a8a69e187a0..fd2fd22e4b8 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs @@ -33,6 +33,7 @@ public class GetCimAssociatedInstanceCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public GetCimAssociatedInstanceCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs index 30290a1f7ba..9e3382f6b85 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs @@ -31,6 +31,7 @@ public class GetCimClassCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public GetCimClassCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs index 0ed548da052..050d48514dc 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs @@ -25,6 +25,7 @@ public class GetCimInstanceCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public GetCimInstanceCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs index 9ce9b7c0269..fa2d7505ae4 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs @@ -22,6 +22,7 @@ public sealed class GetCimSessionCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public GetCimSessionCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs index 9e7c35d11b3..6b86c3e98de 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs @@ -27,6 +27,7 @@ public class InvokeCimMethodCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public InvokeCimMethodCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs index 7ceb91a5559..a7e9d913592 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs @@ -29,6 +29,7 @@ public class NewCimInstanceCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public NewCimInstanceCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs index ed80787e06f..d0f8a44f9e5 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs @@ -45,6 +45,7 @@ public sealed class NewCimSessionOptionCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public NewCimSessionOptionCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs index 2e258c3bf3f..96758762874 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs @@ -27,6 +27,7 @@ public class RemoveCimInstanceCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public RemoveCimInstanceCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs index f717cd899d0..b68250e13fa 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs @@ -29,6 +29,7 @@ public sealed class RemoveCimSessionCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public RemoveCimSessionCommand() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs index d5d6e831944..c800e5ec7b3 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs @@ -29,6 +29,7 @@ public class SetCimInstanceCommand : CimBaseCommand #region constructor /// + /// Initializes a new instance of the class. /// Constructor. /// public SetCimInstanceCommand() From 43db132361afcc770562e58c02606e3540db4c6d Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Mon, 23 Nov 2020 12:42:14 +0000 Subject: [PATCH 2/2] Update summary text --- .../CimAsyncOperation.cs | 1 - .../CimBaseAction.cs | 2 - .../CimCommandBase.cs | 7 -- .../CimGetAssociatedInstance.cs | 3 - .../CimGetCimClass.cs | 6 -- .../CimIndicationWatcher.cs | 12 ---- .../CimInvokeCimMethod.cs | 6 -- .../CimNewCimInstance.cs | 3 - .../CimPromptUser.cs | 1 - .../CimRegisterCimIndication.cs | 5 -- .../CimRemoveCimInstance.cs | 6 -- .../CimResultObserver.cs | 16 ----- .../CimSessionOperations.cs | 13 ---- .../CimSessionProxy.cs | 68 +++++++++++++------ .../CimSetCimInstance.cs | 6 -- .../CimWriteError.cs | 8 +-- .../CimWriteMessage.cs | 1 - .../CimWriteProgress.cs | 1 - .../CimWriteResultObject.cs | 1 - .../CmdletOperation.cs | 5 -- .../GetCimAssociatedInstanceCommand.cs | 1 - .../GetCimClassCommand.cs | 1 - .../GetCimSessionCommand.cs | 1 - .../InvokeCimMethodCommand.cs | 1 - .../NewCimInstanceCommand.cs | 1 - .../NewCimSessionOptionCommand.cs | 1 - .../RemoveCimInstanceCommand.cs | 1 - .../RemoveCimSessionCommand.cs | 1 - .../SetCimInstanceCommand.cs | 1 - 29 files changed, 52 insertions(+), 128 deletions(-) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs index 2743038f35f..49f39c8c019 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs @@ -27,7 +27,6 @@ internal abstract class CimAsyncOperation : IDisposable /// /// Initializes a new instance of the class. - /// The constructor. /// protected CimAsyncOperation() { diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs index 617a7a6d3b0..86444b7f79d 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs @@ -18,7 +18,6 @@ internal abstract class CimBaseAction { /// /// Initializes a new instance of the class. - /// Constructor method. /// protected CimBaseAction() { @@ -71,7 +70,6 @@ internal class CimSyncAction : CimBaseAction, IDisposable { /// /// Initializes a new instance of the class. - /// The constructor. /// public CimSyncAction() { diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs index 1c89ed26f71..8475020905f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs @@ -26,7 +26,6 @@ internal class ParameterDefinitionEntry { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -72,7 +71,6 @@ internal class ParameterSetEntry { /// /// Initializes a new instance of the class. - /// Constructor. /// /// internal ParameterSetEntry(UInt32 mandatoryParameterCount) @@ -84,7 +82,6 @@ internal ParameterSetEntry(UInt32 mandatoryParameterCount) /// /// Initializes a new instance of the class. - /// Constructor. /// /// internal ParameterSetEntry(ParameterSetEntry toClone) @@ -96,7 +93,6 @@ internal ParameterSetEntry(ParameterSetEntry toClone) /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -222,7 +218,6 @@ internal class ParameterBinder { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -573,7 +568,6 @@ internal void SetParameter(object value, string parameterName) /// /// Initializes a new instance of the class. - /// Constructor. /// internal CimBaseCommand() { @@ -583,7 +577,6 @@ internal CimBaseCommand() /// /// Initializes a new instance of the class. - /// Constructor. /// internal CimBaseCommand(Dictionary> parameters, Dictionary sets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs index 4ba4bac55d9..e10df187714 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs @@ -18,9 +18,6 @@ internal sealed class CimGetAssociatedInstance : CimAsyncOperation { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimGetAssociatedInstance() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs index 8ae10fb0447..57fe6386cee 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs @@ -18,9 +18,6 @@ internal class CimGetCimClassContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// /// @@ -106,9 +103,6 @@ internal sealed class CimGetCimClass : CimAsyncOperation { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimGetCimClass() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs index 75f8227d532..15c4611eedc 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs @@ -57,9 +57,6 @@ public Exception Exception /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// public CimIndicationEventExceptionEventArgs(Exception theException) @@ -110,9 +107,6 @@ public string Bookmark /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// public CimIndicationEventInstanceEventArgs(CimSubscriptionResult result) @@ -157,9 +151,6 @@ internal enum Status /// /// Initializes a new instance of the class. - /// - /// Constructor with given computerName, namespace, queryExpression and timeout - /// /// /// /// @@ -180,9 +171,6 @@ public CimIndicationWatcher( /// /// Initializes a new instance of the class. - /// - /// Constructor with given cimsession, namespace, queryExpression and timeout - /// /// /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs index 47fcf0317d5..b6a5337cd62 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs @@ -28,9 +28,6 @@ internal class CimInvokeCimMethodContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// /// @@ -75,9 +72,6 @@ internal CimMethodParametersCollection ParametersCollection /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimInvokeCimMethod() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs index 5b137fc4f4c..48f28de384a 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs @@ -21,9 +21,6 @@ internal class CimNewCimInstanceContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs index 3ce141a9122..306645fd0c0 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs @@ -23,7 +23,6 @@ internal sealed class CimPromptUser : CimSyncAction { /// /// Initializes a new instance of the class. - /// Constructor. /// public CimPromptUser(string message, CimPromptType prompt) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs index e902ae870bf..895c6f79b24 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs @@ -59,7 +59,6 @@ public CimSubscriptionResult Result /// /// Initializes a new instance of the class. - /// Constructor /// /// public CimSubscriptionResultEventArgs( @@ -94,7 +93,6 @@ public Exception Exception /// /// Initializes a new instance of the class. - /// Constructor /// /// public CimSubscriptionExceptionEventArgs( @@ -121,9 +119,6 @@ internal sealed class CimRegisterCimIndication : CimAsyncOperation /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimRegisterCimIndication() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs index 09bb249eaf0..a6182166170 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs @@ -18,9 +18,6 @@ internal class CimRemoveCimInstanceContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// /// @@ -41,9 +38,6 @@ internal sealed class CimRemoveCimInstance : CimGetInstance { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimRemoveCimInstance() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs index 452da5661da..b3b2d73e2ac 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs @@ -33,7 +33,6 @@ internal class CimResultContext { /// /// Initializes a new instance of the class. - /// Constructor. /// /// internal CimResultContext(object ErrorSource) @@ -66,7 +65,6 @@ internal abstract class AsyncResultEventArgsBase : EventArgs { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -83,7 +81,6 @@ protected AsyncResultEventArgsBase( /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -121,9 +118,6 @@ internal class AsyncResultCompleteEventArgs : AsyncResultEventArgsBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// object. /// @@ -144,7 +138,6 @@ internal class AsyncResultObjectEventArgs : AsyncResultEventArgsBase { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -170,7 +163,6 @@ internal class AsyncResultErrorEventArgs : AsyncResultEventArgsBase { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -186,7 +178,6 @@ public AsyncResultErrorEventArgs( /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -230,7 +221,6 @@ internal class CimResultObserver : IObserver /// /// Initializes a new instance of the class. - /// Constructor. /// /// object that issued the operation. /// Operation that can be observed. @@ -242,7 +232,6 @@ public CimResultObserver(CimSession session, IObservable observable) /// /// Initializes a new instance of the class. - /// Constructor. /// /// object that issued the operation. /// Operation that can be observed. @@ -372,7 +361,6 @@ internal class CimSubscriptionResultObserver : CimResultObserver /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -383,7 +371,6 @@ public CimSubscriptionResultObserver(CimSession session, IObservable obs /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -413,7 +400,6 @@ internal class CimMethodResultObserver : CimResultObserver { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -424,7 +410,6 @@ public CimMethodResultObserver(CimSession session, IObservable observabl /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// @@ -508,7 +493,6 @@ internal class IgnoreResultObserver : CimResultObserver { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs index 81adabc9a2f..177e3461942 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs @@ -265,9 +265,6 @@ internal class CimSessionState : IDisposable /// /// Initializes a new instance of the class. - /// - /// The constructor. - /// /// internal CimSessionState() { @@ -787,7 +784,6 @@ internal class CimSessionBase /// /// Initializes a new instance of the class. - /// The constructor. /// public CimSessionBase() { @@ -911,9 +907,6 @@ internal class CimTestCimSessionContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// The constructor. - /// /// /// /// @@ -942,9 +935,6 @@ internal CimSessionWrapper CimSessionWrapper /// /// Initializes a new instance of the class. - /// - /// The constructor. - /// /// internal CimNewSession() : base() { @@ -1135,7 +1125,6 @@ internal class CimGetSession : CimSessionBase { /// /// Initializes a new instance of the class. - /// The constructor. /// public CimGetSession() : base() { @@ -1218,7 +1207,6 @@ internal class CimRemoveSession : CimSessionBase /// /// Initializes a new instance of the class. - /// Constructor. /// public CimRemoveSession() : base() { @@ -1289,7 +1277,6 @@ internal class CimTestSession : CimAsyncOperation { /// /// Initializes a new instance of the class. - /// Constructor. /// internal CimTestSession() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs index 2931d932653..4ce2e61a3af 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs @@ -66,7 +66,6 @@ internal class InvocationContext { /// /// Initializes a new instance of the class. - /// Constructor. /// /// internal InvocationContext(CimSessionProxy proxy) @@ -80,7 +79,6 @@ internal InvocationContext(CimSessionProxy proxy) /// /// Initializes a new instance of the class. - /// Constructor. /// /// internal InvocationContext(string computerName, CimInstance targetCimInstance) @@ -138,7 +136,6 @@ internal sealed class CmdletActionEventArgs : EventArgs { /// /// Initializes a new instance of the class. - /// Constructor. /// /// CimBaseAction object bound to the event. public CmdletActionEventArgs(CimBaseAction action) @@ -156,7 +153,6 @@ internal sealed class OperationEventArgs : EventArgs { /// /// Initializes a new instance of the class. - /// Constructor. /// /// Object used to cancel the operation. /// Async observable operation. @@ -322,8 +318,10 @@ internal static void RemoveCimSessionFromTemporaryCache(CimSession session) /// /// Initializes a new instance of the class. - /// Then create wrapper object by given CimSessionProxy object. /// + /// + /// Then create wrapper object by given CimSessionProxy object. + /// /// public CimSessionProxy(CimSessionProxy proxy) { @@ -337,9 +335,11 @@ public CimSessionProxy(CimSessionProxy proxy) /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name. /// Then create wrapper object. - /// + /// /// public CimSessionProxy(string computerName) { @@ -349,10 +349,12 @@ public CimSessionProxy(string computerName) /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and session options. /// Then create wrapper object. - /// + /// /// /// public CimSessionProxy(string computerName, CimSessionOptions sessionOptions) @@ -363,9 +365,11 @@ public CimSessionProxy(string computerName, CimSessionOptions sessionOptions) /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and cimInstance. Then create wrapper object. - /// + /// /// /// public CimSessionProxy(string computerName, CimInstance cimInstance) @@ -406,9 +410,11 @@ public CimSessionProxy(string computerName, CimInstance cimInstance) /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name, /// session options. - /// + /// /// /// /// Used when create async operation. @@ -420,9 +426,11 @@ public CimSessionProxy(string computerName, CimSessionOptions sessionOptions, Ci /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name. /// Then create wrapper object. - /// + /// /// /// Used when create async operation. public CimSessionProxy(string computerName, CimOperationOptions operOptions) @@ -433,8 +441,10 @@ public CimSessionProxy(string computerName, CimOperationOptions operOptions) /// /// Initializes a new instance of the class. - /// Create wrapper object by given session object. /// + /// + /// Create wrapper object by given session object. + /// /// public CimSessionProxy(CimSession session) { @@ -443,8 +453,10 @@ public CimSessionProxy(CimSession session) /// /// Initializes a new instance of the class. - /// Create wrapper object by given session object. /// + /// + /// Create wrapper object by given session object. + /// /// /// Used when create async operation. public CimSessionProxy(CimSession session, CimOperationOptions operOptions) @@ -1982,10 +1994,12 @@ internal class CimSessionProxyTestConnection : CimSessionProxy /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and session options. /// Then create wrapper object. - /// + /// /// /// public CimSessionProxyTestConnection(string computerName, CimSessionOptions sessionOptions) @@ -2032,9 +2046,11 @@ internal class CimSessionProxyGetCimClass : CimSessionProxy /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name. /// Then create wrapper object. - /// + /// /// public CimSessionProxyGetCimClass(string computerName) : base(computerName) @@ -2043,10 +2059,12 @@ public CimSessionProxyGetCimClass(string computerName) /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and session options. /// Then create wrapper object. - /// + /// /// /// public CimSessionProxyGetCimClass(CimSession session) @@ -2185,9 +2203,11 @@ internal class CimSessionProxyNewCimInstance : CimSessionProxy /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name. /// Then create wrapper object. - /// + /// /// public CimSessionProxyNewCimInstance(string computerName, CimNewCimInstance operation) : base(computerName) @@ -2197,10 +2217,12 @@ public CimSessionProxyNewCimInstance(string computerName, CimNewCimInstance oper /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and session options. /// Then create wrapper object. - /// + /// /// /// public CimSessionProxyNewCimInstance(CimSession session, CimNewCimInstance operation) @@ -2267,9 +2289,11 @@ internal class CimSessionProxySetCimInstance : CimSessionProxy #region constructors /// /// Initializes a new instance of the class. + /// + /// /// Create by given object. /// Then create wrapper object. - /// + /// /// object to clone. /// PassThru, true means output the modified instance; otherwise does not output. public CimSessionProxySetCimInstance(CimSessionProxy originalProxy, bool passThru) @@ -2280,9 +2304,11 @@ public CimSessionProxySetCimInstance(CimSessionProxy originalProxy, bool passThr /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name. /// Then create wrapper object. - /// + /// /// /// /// @@ -2296,10 +2322,12 @@ public CimSessionProxySetCimInstance(string computerName, /// /// Initializes a new instance of the class. + /// + /// /// Create by given computer name /// and session options. /// Then create wrapper object. - /// + /// /// /// public CimSessionProxySetCimInstance(CimSession session, bool passThru) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs index 759ddc8c118..397d59b75f3 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs @@ -20,9 +20,6 @@ internal class CimSetCimInstanceContext : XOperationContextBase { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// /// /// @@ -89,9 +86,6 @@ internal sealed class CimSetCimInstance : CimGetInstance { /// /// Initializes a new instance of the class. - /// - /// Constructor - /// /// public CimSetCimInstance() : base() diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs index ded78bc343f..db38ab2dfcb 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs @@ -317,8 +317,8 @@ internal static ErrorCategory ConvertCimErrorToErrorCategory(CimInstance cimErro internal sealed class CimWriteError : CimSyncAction { /// - /// Initializes a new instance of the class. - /// Constructor with an error. + /// Initializes a new instance of the class + /// with the specified . /// /// public CimWriteError(CimInstance error, InvocationContext context) @@ -328,8 +328,8 @@ public CimWriteError(CimInstance error, InvocationContext context) } /// - /// Initializes a new instance of the class. - /// Construct with an exception object. + /// Initializes a new instance of the class + /// with the specified . /// /// public CimWriteError(Exception exception, InvocationContext context, CimResultContext cimResultContext) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs index 6ac6c9481e2..f9a1f781473 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs @@ -46,7 +46,6 @@ internal string Message /// /// Initializes a new instance of the class. - /// Constructor method. /// public CimWriteMessage(UInt32 channel, string message) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs index 7604a7cfe6b..c9c224195be 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs @@ -19,7 +19,6 @@ internal sealed class CimWriteProgress : CimBaseAction { /// /// Initializes a new instance of the class. - /// Constructor. /// /// /// Activity identifier of the given activity diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs index d58a3ef54b8..d565d50f6de 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs @@ -16,7 +16,6 @@ internal sealed class CimWriteResultObject : CimBaseAction { /// /// Initializes a new instance of the class. - /// Constructor. /// public CimWriteResultObject(object result, XOperationContextBase theContext) { diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs index 7f4406fb293..3c49b1dcbb8 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs @@ -124,7 +124,6 @@ internal void ThrowTerminatingError(Exception exception, string operation) /// /// Initializes a new instance of the class. - /// Constructor method. /// public CmdletOperationBase(Cmdlet cmdlet) { @@ -145,7 +144,6 @@ internal class CmdletOperationRemoveCimInstance : CmdletOperationBase { /// /// Initializes a new instance of the class. - /// Constructor method. /// /// public CmdletOperationRemoveCimInstance(Cmdlet cmdlet, @@ -210,7 +208,6 @@ internal class CmdletOperationSetCimInstance : CmdletOperationBase { /// /// Initializes a new instance of the class. - /// Constructor method. /// /// public CmdletOperationSetCimInstance(Cmdlet cmdlet, @@ -289,7 +286,6 @@ internal class CmdletOperationInvokeCimMethod : CmdletOperationBase { /// /// Initializes a new instance of the class. - /// Constructor method. /// /// public CmdletOperationInvokeCimMethod(Cmdlet cmdlet, @@ -355,7 +351,6 @@ internal class CmdletOperationTestCimSession : CmdletOperationBase { /// /// Initializes a new instance of the class. - /// Constructor method. /// /// public CmdletOperationTestCimSession(Cmdlet cmdlet, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs index fd2fd22e4b8..5b3729f87dc 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs @@ -34,7 +34,6 @@ public class GetCimAssociatedInstanceCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public GetCimAssociatedInstanceCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs index 9e3382f6b85..903778241dd 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs @@ -32,7 +32,6 @@ public class GetCimClassCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public GetCimClassCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs index fa2d7505ae4..0be1b643f79 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs @@ -23,7 +23,6 @@ public sealed class GetCimSessionCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public GetCimSessionCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs index 6b86c3e98de..b0a58024a95 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs @@ -28,7 +28,6 @@ public class InvokeCimMethodCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public InvokeCimMethodCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs index a7e9d913592..395dea3af77 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs @@ -30,7 +30,6 @@ public class NewCimInstanceCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public NewCimInstanceCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs index d0f8a44f9e5..70fb249798f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs @@ -46,7 +46,6 @@ public sealed class NewCimSessionOptionCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public NewCimSessionOptionCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs index 96758762874..2cb60d3c539 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs @@ -28,7 +28,6 @@ public class RemoveCimInstanceCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public RemoveCimInstanceCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs index b68250e13fa..00f575c41c8 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs @@ -30,7 +30,6 @@ public sealed class RemoveCimSessionCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public RemoveCimSessionCommand() : base(parameters, parameterSets) diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs index c800e5ec7b3..e0772450d60 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs @@ -30,7 +30,6 @@ public class SetCimInstanceCommand : CimBaseCommand /// /// Initializes a new instance of the class. - /// Constructor. /// public SetCimInstanceCommand() : base(parameters, parameterSets)