diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs index 1e21b78174..9cf9589326 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs @@ -53,7 +53,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// Event argument. protected void NewCmdletActionHandler(object cimSession, CmdletActionEventArgs actionArgs) { - DebugHelper.WriteLogEx("Disposed {0}, action type = {1}", 0, this._disposed, actionArgs.Action); + DebugHelper.WriteLogEx("Disposed {0}, action type = {1}", 0, this.Disposed, actionArgs.Action); if (this.Disposed) { @@ -443,11 +443,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { get { - return Interlocked.Read(ref this._disposed) == 1; + return this._disposed == 1; } } - private long _disposed; + private int _disposed; /// ///