private void OnMessagePoARequest(JsonRpc request) { Task.Run(async() => { string hash = request.Params <string>(0); string iv = request.Params <string>(1); // request for accessToken string accessToken = await callback?.Invoke(hash, iv); if (!string.IsNullOrEmpty(accessToken)) { await connection.SendAsync(new JsonRpc.Notification(POA_RESPONSE, uid, address, accessToken).ToString(), CancellationToken.None); } }); }
private void OnMessagePoAResult(JsonRpc request) { string error = request.Params <string>(0); if (!string.IsNullOrEmpty(error)) { Log.Warning("PoA.ErrorMessage=", error); } }