public static async Task Run() { var options = Configuration.GetAWSOptions(); var sqsQueueMananger = new SQSQueueMananger(options, "DentonQueue"); var sqsQueueSender = new SQSQueueSender(sqsQueueMananger); var senderTask = sqsQueueSender.Run(); var sqsQueueReceiver = new SQSQueueReceiver(sqsQueueMananger); var receiverTask = sqsQueueReceiver.Run(); await Task.WhenAll( senderTask, receiverTask); }
public SQSQueueReceiver(SQSQueueMananger sqsQueueMananger) { _sqsQueueMananger = sqsQueueMananger; }
public SQSQueueSender(SQSQueueMananger sqsQueueMananger) { _sqsQueueMananger = sqsQueueMananger; }