Exemplo n.º 1
0
        public async Task Run([QueueTrigger("subscription-validation", Connection = "QueueStorage")] string item, ILogger log)
        {
            Subscription       subscription       = JsonSerializer.Deserialize <Subscription>(item);
            CloudEventEnvelope cloudEventEnvelope = CreateValidateEvent(subscription);
            await _webhookService.Send(cloudEventEnvelope);

            await _validateSubscriptionService.ValidateSubscription(cloudEventEnvelope.SubscriptionId);
        }
Exemplo n.º 2
0
 public async Task Run([QueueTrigger("events-outbound", Connection = "QueueStorage")] string item, ILogger log)
 {
     CloudEventEnvelope cloudEventEnvelope = JsonSerializer.Deserialize <CloudEventEnvelope>(item);
     await _webhookService.Send(cloudEventEnvelope);
 }