コード例 #1
0
        public void UpdateFilter(BlockAccessor block)
        {
            long id      = block.Id;
            long version = block.GetEntityVersion();

            blockEntityVersions[id] = version;
        }
コード例 #2
0
        public bool FilterBlock(BlockAccessor block)
        {
            long id      = block.Id;
            long version = block.GetEntityVersion();

            if (!blockEntityVersions.TryGetValue(id, out long oldVersion))
            {
                return(false);
            }
            return(oldVersion == version);
        }