コード例 #1
0
        public async Task GetChanges()
        {
            var newEvents = await _event.GetFilterChanges <T>(_filter);

            foreach (var newEvent in newEvents)
            {
                _callback(_contractAddress, newEvent.Event);
            }
        }
コード例 #2
0
        public async Task GetChanges()
        {
            var newEvents = await _event.GetFilterChanges <T>(_filter);

            foreach (var newEvent in newEvents)
            {
                _callback(_contractAddress, new BlockInfo(newEvent.Log.BlockNumber, DateTime.UtcNow), newEvent.Event);
            }
        }