Example #1
0
        public void Import(WalletImportExportConfig importExportConfig)
        {
            (string config, string credentials) = GetConfigCredentialJson();
            string import = importExportConfig.ToJson();

            WalletAsync.ImportAsync(config, credentials, import).Wait();
        }
Example #2
0
        public void Create()
        {
            (string config, string credentials) = GetConfigCredentialJson();

            Logger.Info($"config is {config}");
            Logger.Info($"credentials is {credentials}");

            WalletAsync.CreateWalletAsync(config, credentials).Wait();
        }
Example #3
0
        public void Close()
        {
            if (null == _asyncHandle)
            {
                return;
            }

            _asyncHandle.CloseAsync().Wait();
            _asyncHandle = null;
            Handle       = INVALID_WALLET_HANDLE;
        }
Example #4
0
 public void Open()
 {
     (string config, string credentials) = GetConfigCredentialJson();
     _asyncHandle = WalletAsync.OpenWalletAsync(config, credentials).Result;
     Handle       = _asyncHandle.Handle;
 }
Example #5
0
        public void Delete()
        {
            (string config, string credentials) = GetConfigCredentialJson();

            WalletAsync.DeleteWalletAsync(config, credentials).Wait();
        }