public async Task Nothing()
        {
            var body = new DoNothingMessage
            {
                StartAt = DateTimeOffset.UtcNow.AddSeconds(1)
            };

            await _sqsClient.SendDoNothingMessageAsync(body);
        }
示例#2
0
        public IActionResult DoNothing(DoNothingMessage model)
        {
            _logger.LogDebug("Received order to do nothing starting at {StartAt}", model.StartAt);

            return(Ok());
        }
示例#3
0
 public Task SendDoNothingMessageAsync(DoNothingMessage body)
 {
     return(SendMessagesAsync(WorkerConstants.DoNothingTaskName, body));
 }