public void RemoveLease(I2PIdentHash tunnelgw, uint tunnelid) { I2PLease[] remove; lock ( Leases ) { remove = Leases.Where(l => l.TunnelId == tunnelid && l.TunnelGw == tunnelgw).ToArray(); } if (remove.Length != 0) { lock ( Leases ) { foreach (var one in remove) { Leases.Remove(one); } } } else { DebugUtils.LogDebug("I2PLeaseSet RemoveLease: No lease found to remove"); } }
public I2PRoutingKey(I2PIdentHash ident, bool nextday) { Identity = ident; NextDay = nextday; }
public I2PLease(I2PIdentHash tunnelgw, I2PTunnelId tunnelid, I2PDate enddate) { TunnelGw = tunnelgw; TunnelId = tunnelid; EndDate = enddate; }