public Task <InterceptorResult> CheckSendRequestAsync(long satoshiAmount, string to, string currency, bool isReferral) { if (!Currency.Equals(currency, StringComparison.OrdinalIgnoreCase)) { return(Task.FromResult(InterceptorResult.Success())); } return(Task.FromResult(InterceptorResult.IfFailure(satoshiAmount > SatoshiLimit, () => $"The send value ({satoshiAmount} {currency} satoshi) is higher than limit ({SatoshiLimit} {currency} satoshi)."))); }
public InterceptorFailException(string message, InterceptorResult result, Exception innerException, Type interceptorType = null) : base(message, innerException) { InterceptorType = interceptorType; Result = result; }
public InterceptorFailException(InterceptorResult result, Type interceptorType = null) : base(result.Message) { InterceptorType = interceptorType; Result = result; }