/// <summary> /// Gets the blocking object. /// </summary> /// <param name="address">The address.</param> /// <returns>DumpBlockingObject.</returns> /// <exception cref="IndexOutOfRangeException"></exception> /// <inheritdoc /> public DumpBlockingObject GetBlockingObject(ulong address) { if (BlockingObjectsInternal.TryGetValue(address, out var obj)) { return(obj); } throw new IndexOutOfRangeException($"There is no object matching address: {address:x}"); }
/// <summary> /// Adds the blocking object. /// </summary> /// <param name="dumpBlockingObject">The dump blocking object.</param> public void AddBlockingObject(DumpBlockingObject dumpBlockingObject) { lock (BlockingObjectsInternal) BlockingObjectsInternal.Add(dumpBlockingObject); }