protected Task On(WebhookAdded @event, EnvelopeHeaders headers)
 {
     return(Collection.UpdateAsync(@event, headers, s =>
     {
         /* NOOP */
     }));
 }
        protected async Task On(WebhookAdded @event, EnvelopeHeaders headers)
        {
            await EnsureWebooksLoadedAsync();

            var theAppId    = @event.AppId.Id;
            var theSchemaId = @event.SchemaId.Id;

            var webhook = SimpleMapper.Map(@event, new MongoSchemaWebhookEntity {
                AppId = theAppId, SchemaId = theSchemaId
            });

            inMemoryWebhooks.GetOrAddNew(theAppId).GetOrAddNew(theSchemaId).Add(SimpleMapper.Map(@event, new ShortInfo()));

            await Collection.InsertOneAsync(webhook);
        }
 protected Task On(WebhookAdded @event, EnvelopeHeaders headers)
 {
     return(UpdateSchema(@event, headers, s => s));
 }
Example #4
0
 public void On(WebhookAdded @event, EnvelopeHeaders headers)
 {
     UpdateSchema(@event, headers);
 }
Example #5
0
 protected void On(WebhookAdded @event)
 {
     webhookIds.Add(@event.Id);
 }