Ejemplo n.º 1
0
        private static async Task LoadBlocks()
        {
            if (_loading)
            {
                return;
            }

            _loading = true;

            var contextFactory = new AkromaContextFactory();
            var import         = new ImportService(contextFactory);
            await import.Execute();

            _loading = false;
        }
Ejemplo n.º 2
0
        private static async Task LoadBlocks()
        {
            if (_loading)
            {
                return;
            }

            _loading = true;

            var contextFactory = new AkromaContextFactory();

            //using (var context = contextFactory.Create())
            //{
            //    await context.Database.MigrateAsync();
            //}

            var import = new ImportService(contextFactory);
            await import.Execute();

            _loading = false;
        }
Ejemplo n.º 3
0
 public ImportService(AkromaContextFactory contextFactory)
 {
     _contextFactory = contextFactory;
     _web3           = new Web3.Web3();
 }
Ejemplo n.º 4
0
 public ImportService(AkromaContextFactory contextFactory)
 {
     _contextFactory = contextFactory;
 }