Beispiel #1
0
        public async Task ProcessFullUpsertAsync(string contractAddress)
        {
            if (await StandardDataRegistry.ExistsAsync(contractAddress))
            {
                var model = await GetObjectModelAsync(contractAddress);

                foreach (var dataChangedService in DataChangedServices)
                {
                    await dataChangedService.UpsertAsync(model);
                }
            }
        }
Beispiel #2
0
        private async Task ProcessDataChangeUpdateAsync(EventLog <DataChangedEvent> dataEventLog)
        {
            var contractAddress = dataEventLog.Log.Address;

            if (await StandardDataRegistry.ExistsAsync(contractAddress))
            {
                var model = await GetObjectModelAsync(contractAddress);

                foreach (var dataChangedService in DataChangedServices)
                {
                    await dataChangedService.DataChangedAsync(model, dataEventLog);
                }
            }
        }