예제 #1
0
        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);
        }
예제 #2
0
 public override void Close()
 {
     Delegate.Dispose();
 }
예제 #3
0
 private void CloseIdGenerator(IdGenerator idGenerator)
 {
     idGenerator.Dispose();
 }