コード例 #1
0
 public async Task <bool> IsRevealedSourceAsync(
     string from,
     CancellationToken cancellationToken = default)
 {
     return(!string.IsNullOrEmpty(from) && await _tezosRevealChecker
            .IsRevealedAsync(from, cancellationToken)
            .ConfigureAwait(false));
 }
コード例 #2
0
        public async Task <bool> IsRevealedSourceAsync(
            string from,
            CancellationToken cancellationToken = default)
        {
            if (from != null)
            {
                return(await _tezosRevealChecker
                       .IsRevealedAsync(from, cancellationToken)
                       .ConfigureAwait(false));
            }

            return(false);
        }