public virtual bool IsRetryableException(Exception exception) { if (exception == null) { throw Fx.Exception.ArgumentNull("lastException"); } ServiceBusException serviceBusException = exception as ServiceBusException; if (serviceBusException != null) { return(serviceBusException.IsTransient); } return(false); }
public static bool ShouldRetry(Exception exception) { ServiceBusException serviceBusException = exception as ServiceBusException; return(serviceBusException != null && serviceBusException.IsTransient); }