private async Task Run(UpsertParkrunMessage message, CancellationToken cancellationToken)
        {
            var request = _mapper.Map <Data.Mongo.UpsertParkrun.Request>(message);

            await _mediator.Send(request, cancellationToken)
            .ConfigureAwait(false);
        }
 public static async Task Run([QueueTrigger(QueueNames.UpsertParkrun, Connection = "AzureWebJobsStorage")] UpsertParkrunMessage message,
                              ILogger logger,
                              CancellationToken cancellationToken)
 {
     await Container.Instance.Resolve <UpsertParkrunQueueFunction>(logger).Run(message, cancellationToken);
 }