示例#1
0
        public void EnsureSetup()
        {
            Indexer.EnsureSetup();

            var tasks = new[]
            {
                GetCallbackTable(),
                GetChainCacheCloudTable(),
                GetCrudTable(),
            }.Select(t => t.CreateIfNotExistsAsync()).ToArray();

            var tasks2 = new Task[]
            {
                GetWalletRuleListenable().EnsureSetupAsync(),
                GetBroadcastedTransactionsListenable().EnsureSetupAsync(),
            };

            Task.WaitAll(tasks.Concat(tasks2).ToArray());
        }