コード例 #1
0
        async public Task AddNodeAsync(string node, AddNodeAction action)
        {
            WalletRequest walletRequest = new WalletRequest("addnode", new List <object>()
            {
                node, action.ToString().ToLowerInvariant()
            });

            await RpcRequestAsync <object>(walletRequest);
        }
コード例 #2
0
        public void AddNode(string node, AddNodeAction action)
        {
            WalletRequest walletRequest = new WalletRequest("addnode", new List <object>()
            {
                node, action.ToString().ToLowerInvariant()
            });

            RpcRequest <object>(walletRequest);
        }
コード例 #3
0
ファイル: Bitcoind.cs プロジェクト: nrjudson/MonoBitcoind
 /**
  * If it returns without throwing an exception, it went well.
  */
 public static void AddNode(string ipAddress, string port, AddNodeAction type)
 {
     SimpleStringRequest ("addnode", qt + ipAddress + ":" + port + qt + ", " + qt + type.ToString () + qt, false);
 }
コード例 #4
0
 /**
  * If it returns without throwing an exception, it went well.
  */
 public static void AddNode(string ipAddress, string port, AddNodeAction type)
 {
     SimpleStringRequest("addnode", qt + ipAddress + ":" + port + qt + ", " + qt + type.ToString() + qt, false);
 }