コード例 #1
0
        // Load the store (creates if no store yet).
        private JsonCrossChainTransactionStore LoadCrossChainTransactionStore()
        {
            if (this.fileStorage.Exists(filename))
            {
                return(this.fileStorage.LoadByFileName(filename));
            }

            // Create a new empty store.
            var transactionStore = new JsonCrossChainTransactionStore();

            this.fileStorage.SaveToFile(transactionStore, filename);
            return(transactionStore);
        }
コード例 #2
0
 public void Initialize()
 {
     // Load the store.
     this.crossChainTransactionStore = this.LoadCrossChainTransactionStore();
 }