private static long GetHighId(DefaultIdGeneratorFactory factory, IdType idType, File idFile) { IdGenerator idGenerator = factory.Open(idFile, idType, () => - 1L, long.MaxValue); long highId = idGenerator.HighId; idGenerator.Dispose(); return(highId); }
public override void Close() { Delegate.Dispose(); }
private void CloseIdGenerator(IdGenerator idGenerator) { idGenerator.Dispose(); }