{"action":"created","issue":{"url":"https://api.github.com/repos/App-vNext/Polly/issues/14","labels_url":"https://api.github.com/repos/App-vNext/Polly/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/App-vNext/Polly/issues/14/comments","events_url":"https://api.github.com/repos/App-vNext/Polly/issues/14/events","html_url":"https://github.com/App-vNext/Polly/issues/14","id":48070730,"number":14,"title":"Feature Request: Add ability to retry method based on condition","user":{"login":"ilmax","id":3263338,"avatar_url":"https://avatars.githubusercontent.com/u/3263338?v=3","gravatar_id":"","url":"https://api.github.com/users/ilmax","html_url":"https://github.com/ilmax","followers_url":"https://api.github.com/users/ilmax/followers","following_url":"https://api.github.com/users/ilmax/following{/other_user}","gists_url":"https://api.github.com/users/ilmax/gists{/gist_id}","starred_url":"https://api.github.com/users/ilmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilmax/subscriptions","organizations_url":"https://api.github.com/users/ilmax/orgs","repos_url":"https://api.github.com/users/ilmax/repos","events_url":"https://api.github.com/users/ilmax/events{/privacy}","received_events_url":"https://api.github.com/users/ilmax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-07T11:02:59Z","updated_at":"2016-01-24T09:12:05Z","closed_at":null,"body":"Hi,\r\n\r\nI would like to have the ability to retry method that does not throw exception, in my case I have to do some work with a COM component. In some condition the method I'm calling return null and null is a non valid result for me. I would like to have the ability to retry this method if the result is null.\r\n\r\nBest regards, Max.\r\n\r\nP.S. Thanks for this great library!"},"comment":{"url":"https://api.github.com/repos/App-vNext/Polly/issues/comments/174271141","html_url":"https://github.com/App-vNext/Polly/issues/14#issuecomment-174271141","issue_url":"https://api.github.com/repos/App-vNext/Polly/issues/14","id":174271141,"user":{"login":"reisenberger","id":9608723,"avatar_url":"https://avatars.githubusercontent.com/u/9608723?v=3","gravatar_id":"","url":"https://api.github.com/users/reisenberger","html_url":"https://github.com/reisenberger","followers_url":"https://api.github.com/users/reisenberger/followers","following_url":"https://api.github.com/users/reisenberger/following{/other_user}","gists_url":"https://api.github.com/users/reisenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/reisenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reisenberger/subscriptions","organizations_url":"https://api.github.com/users/reisenberger/orgs","repos_url":"https://api.github.com/users/reisenberger/repos","events_url":"https://api.github.com/users/reisenberger/events{/privacy}","received_events_url":"https://api.github.com/users/reisenberger/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T09:12:05Z","updated_at":"2016-01-24T09:12:05Z","body":"@joelhulen Extending Polly such that policies could handle/react to return values as well as exceptions could be useful, for example, in the case of calls to endpoints returning HTTP status codes.  eg Calls to RESTful endpoints might be indicating significant failure via 5xx http status codes rather than exceptions. We could look in to this in the longer-term."}}