public Task <IEnumerable <Type> > MethodWithTimeoutTestAsync(HystrixFallback hystrixFallback, int a) => Task.FromResult(MethodBase.GetCurrentMethod().GetParameters().Select(x => x.ParameterType));
public IEnumerable <object> MethodWithGenericTypetTest(HystrixFallback hystrixFallback) => MethodBase.GetCurrentMethod().GetParameters().Select(x => x.ParameterType);
public Task <IEnumerable <Type> > MethodWithExceptionTestAsync(HystrixFallback hystrixFallback, long a, bool b) => Task.FromResult(MethodBase.GetCurrentMethod().GetParameters().Select(x => x.ParameterType));
public IEnumerable <Type> MethodWithTimeoutTest(HystrixFallback hystrixFallback, int a) => MethodBase.GetCurrentMethod().GetParameters().Select(x => x.ParameterType);
public void MethodRetunsVoid(HystrixFallback hystrixFallback) { }
public Task MethodWithCancelationTokenTest(HystrixFallback hystrixFallback, CancellationToken token) => Task.CompletedTask;
public JokeResponse GetJoke(HystrixFallback hystrixFallback) { return(DefaultFallback("teste")); }
public JokeResponse GetJoke(HystrixFallback hystrixFallback, string id) { return(DefaultFallback(id)); }
public Task <IEnumerable <JokeResponse> > GetAllJokeAsync(HystrixFallback hystrixFallback, CancellationToken cancellationToken = default(CancellationToken)) { var result = Enumerable.Range(0, 20).Select((x, i) => DefaultFallback(i.ToString())); return(Task.FromResult(result)); }
public Task AddJokeAsync(HystrixFallback hystrixFallback) { _logger.LogInformation("this method need to be implemented to record a joke"); return(Task.CompletedTask); }
public void AddJoke(HystrixFallback hystrixFallback) { _logger.LogInformation("this method need to be implemented to record a joke"); }
public Task <JokeResponse> GetJokeAsync(HystrixFallback hystrixFallback, string id) { var result = DefaultFallback(id); return(Task.FromResult(result)); }
public Task <JokeResponse> GetJokeAsync(HystrixFallback hystrixFallback, CancellationToken cancellationToken = default(CancellationToken)) { var result = DefaultFallback("Fallback"); return(Task.FromResult(result)); }