Beispiel #1
0
        public static int Main(string[] args)
        {
            var storageProcessorConsole = new StorageProcessorConsole <AzureTablesRepositoryFactory>(
                args,
                "Nethereum.BlockchainStore.AzureTables",
                CreateRepositoryFactory
                );

            return(storageProcessorConsole.ExecuteAsync(
                       new CancellationToken())
                   .Result);
        }
Beispiel #2
0
        public static int Main(string[] args)
        {
            var storageProcessorConsole = new StorageProcessorConsole <BlockchainStoreRepositoryFactory>(
                args,
                "Nethereum.BlockchainStorage.EFCore.Sqlite",
                config => new BlockchainStoreRepositoryFactory(new SqliteBlockchainDbContextFactory(config.GetBlockchainStorageConnectionString()))
                );

            return(storageProcessorConsole.ExecuteAsync(
                       new CancellationToken())
                   .Result);
        }
        static int Main(string[] args)
        {
            var storageProcessorConsole = new StorageProcessorConsole <MongoDbRepositoryFactory>(
                args,
                "Nethereum.BlockchainStore.MongoDb.UserSecrets",
                config => MongoDbRepositoryFactory.Create(config)
                );

            return(storageProcessorConsole.ExecuteAsync(
                       new CancellationToken())
                   .Result);
        }
Beispiel #4
0
        static int Main(string[] args)
        {
            var storageProcessorConsole = new StorageProcessorConsole <CsvBlockchainStoreRepositoryFactory>(
                args,
                "Nethereum.BlockchainStore.Csv.UserSecrets",
                config => new CsvBlockchainStoreRepositoryFactory(config["CsvOutputPath"]),
                repoFactory => repoFactory.DisposeRepositories()
                );

            return(storageProcessorConsole.ExecuteAsync(
                       new CancellationToken())
                   .Result);
        }