//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public void accept(final org.neo4j.kernel.impl.locking.Locks_Visitor visitor) public override void Accept(Org.Neo4j.Kernel.impl.locking.Locks_Visitor visitor) { _manager.accept(element => { object resource = element.resource(); if (resource is LockResource) { LockResource lockResource = ( LockResource )resource; visitor.Visit(lockResource.Type(), lockResource.ResourceId(), element.describe(), element.maxWaitTime(), System.identityHashCode(lockResource)); } return(false); }); }
public override void Accept(Org.Neo4j.Kernel.impl.locking.Locks_Visitor @out) { for (int i = 0; i < _lockMaps.Length; i++) { if (_lockMaps[i] != null) { ResourceType type = _resourceTypes[i]; foreach (KeyValuePair <long, Lock> entry in _lockMaps[i].entrySet()) { Lock @lock = entry.Value; @out.Visit(type, entry.Key, @lock.DescribeWaitList(), 0, System.identityHashCode(@lock)); } } } }