Stumps.Server.StumpsServerInstance.DeleteStump C# (CSharp) Method

DeleteStump() public method

Deletes an existing stump.
public DeleteStump ( string stumpId ) : void
stumpId string The unique identifier for the Stump.
return void
        public void DeleteStump(string stumpId)
        {
            _lock.EnterWriteLock();

            var stump = _stumpReference[stumpId];
            _stumpReference.Remove(stumpId);
            _stumpList.Remove(stump);
            _server.DeleteStump(stumpId);

            _dataAccess.StumpDelete(this.ServerId, stumpId);

            _lock.ExitWriteLock();
        }