Ejemplo n.º 1
0
        private async Task Run(AddParkrunCancellationMessage message, CancellationToken cancellationToken)
        {
            var request = _mapper.Map <Data.Mongo.AddParkrunCancellation.Request>(message);

            await _mediator.Send(request, cancellationToken)
            .ConfigureAwait(false);
        }
Ejemplo n.º 2
0
 public static async Task Run([QueueTrigger(QueueNames.AddParkrunCancellation, Connection = "AzureWebJobsStorage")]
                              AddParkrunCancellationMessage message,
                              ILogger logger, CancellationToken cancellationToken)
 {
     await Container.Instance.Resolve <AddParkrunCancellationQueueFunction>(logger).Run(message, cancellationToken);
 }