Exemple #1
0
        public async Task <Address> GetAddress(string id)
        {
            Address address;

            try
            {
                address = await BlockchainDataProvider.GetAddress(id);

                if (address != null)
                {
                    await AddressRepository.UpdateAddress(address);
                }
            }
            catch (Exception ex)
            {
                _log.LogError(ex.Message);
                return(null);
            }

            return(address);
        }
        public async Task <Address> GetAddress(string id)
        {
            Address address;

            try
            {
                address = await BlockchainDataProvider.GetAddress(id);

                if (address != null)
                {
                    await AddressRepository.UpdateAddress(address);
                }
            }
            catch (Exception ex)
            {
                await Log.WriteError(this.GetType().ToString(), "GetAddress", $"address_id:{id}", ex, DateTime.Now);

                return(null);
            }

            return(address);
        }