コード例 #1
0
        public void TestRpcApplicationLog()
        {
            JObject json = TestUtils.RpcTestCases.Find(p => p.Name == nameof(RpcClient.GetApplicationLogAsync).ToLower()).Response.Result;
            var     item = RpcApplicationLog.FromJson(json);

            Assert.AreEqual(json.ToString(), item.ToJson().ToString());
        }
コード例 #2
0
ファイル: RpcClient.cs プロジェクト: devhawk/neo-monorepo
        /// <summary>
        /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
        /// This method is provided by the plugin ApplicationLogs.
        /// </summary>
        public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash, TriggerType triggerType)
        {
            var result = await RpcSendAsync(GetRpcName(), txHash, triggerType).ConfigureAwait(false);

            return(RpcApplicationLog.FromJson(result, protocolSettings));
        }
コード例 #3
0
        /// <summary>
        /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
        /// This method is provided by the plugin ApplicationLogs.
        /// </summary>
        public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash)
        {
            var result = await RpcSendAsync(GetRpcName(), txHash).ConfigureAwait(false);

            return(RpcApplicationLog.FromJson(result));
        }
コード例 #4
0
 /// <summary>
 /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory.
 /// This method is provided by the plugin ApplicationLogs.
 /// </summary>
 public RpcApplicationLog GetApplicationLog(string txHash)
 {
     return(RpcApplicationLog.FromJson(RpcSend("getapplicationlog", txHash)));
 }