/// <summary> /// Release the unmanaged memory associated with this StatusChecker. /// </summary> protected override void DisposeObject() { if (_status != null && (_status.StatusCode != Status.Code.Ok)) { throw new Exception(_status.Message); } if (_statusNeedDispose) { _status.Dispose(); _status = null; } }
/// <summary> /// Release the unmanaged memory associated with this StatusChecker. /// </summary> protected override void DisposeObject() { if (_status == null) { return; } if (_status.Disposed) { _status = null; return; } if (_status.StatusCode != Status.Code.Ok) { throw new Exception(_status.Message); } if (_statusNeedDispose) { _status.Dispose(); } _status = null; }