public void Combine(MutexOperationResult anotherResult) { _history.AddRange(anotherResult._history); _result = _result | anotherResult._result; if (anotherResult.ResultIs(MutexOperationResultEnum.Acquired)) { this.AcquisitionKey = anotherResult.AcquisitionKey; } }
public bool ResultIs(MutexOperationResultEnum resultToCheck) { return((_result & resultToCheck) == resultToCheck); }