I\'m using Polly to wrap all of my database commands in case of connection errors but I\'m getting the above error when trying to write a custom method to run the Polly code. I\