c-sharp
c-sharp copied to clipboard
Avoids retrying on 403s
This pull request is a fix for retrying on 403s. From a consumer perspective retrying on 403s is extremely expensive since Pubnub charges per transaction even if it's a 403. So this fix that issue by checking the pnstatus and only retrying is the status is not AccessDeniedCategory.
If it is access denied category, then it announces it so that the user can implement its own retry logic.
Fixes: https://github.com/pubnub/c-sharp/issues/122