public Task CallAsync <TResourceIdentifier>(RequestBase <TResourceIdentifier> request) where TResourceIdentifier : class, IResourceIdentifier { request.Context = request.Context ?? _contexFunc?.Invoke(); EnsureRequestObjectIsValid(request); return(_requestHandler.CallAsync(request)); }
public Task CallAsync <TResourceIdentifier>(RequestBase <TResourceIdentifier> request) where TResourceIdentifier : class, IResourceIdentifier { request.Context = request.Context ?? _contextFunc?.Invoke(); EnsureRequestObjectIsValid(request); if (_resilienceHandler == null) { return(_requestHandler.CallAsync(request)); } return(_resilienceHandler.ExecuteAsync(request, req => _requestHandler.CallAsync(req))); }