Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created March 8, 2022 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/42861e00b0d389dae2cbbc35de7efede to your computer and use it in GitHub Desktop.
Save awswithdotnet/42861e00b0d389dae2cbbc35de7efede to your computer and use it in GitHub Desktop.
sqs SQSMessageConsumer Partial 2
public SQSMessageConsumer()
{
BasicAWSCredentials basicCredentials = new BasicAWSCredentials(_accessKey, _secret);
RegionEndpoint region = RegionEndpoint.GetBySystemName(_awsregion);
_sqsClient = new AmazonSQSClient(basicCredentials, region);
Console.CancelKeyPress += new ConsoleCancelEventHandler(CancelKeyPressHandler);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment