public async Task <Contracts.ChainalysisUserModel> GetChainalysisId(string userId)
        {
            var task    = _service.UserByUserIdGetChainalysisIdGetAsync(userId);
            var resTask = await TaskWithDelay(task);

            if (resTask != task)
            {
                _log.WriteWarning(nameof(ChainalysisProxyClient), nameof(GetChainalysisId), $"Timeout with {userId}");
                return(null);
            }

            var result = task.Result;

            return(new Contracts.ChainalysisUserModel {
                UserId = (result as ChainalysisProxy.AutorestClient.Models.ChainalysisUserModel)?.UserId
            });
        }
示例#2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userId'>
 /// Lykke user Id
 /// </param>
 public static object UserByUserIdGetChainalysisIdGet(this IChainalysisProxyAPI operations, string userId)
 {
     return(operations.UserByUserIdGetChainalysisIdGetAsync(userId).GetAwaiter().GetResult());
 }