Created
March 8, 2022 19:28
-
-
Save awswithdotnet/2ae9be6e6c423c330412c0d62defa460 to your computer and use it in GitHub Desktop.
sqs SQSMessageConsumer CancelKeyPressHandler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void CancelKeyPressHandler(object sender, ConsoleCancelEventArgs args){ | |
args.Cancel = true; | |
_source.Cancel(); | |
_isPolling = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment