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)); }
public void On(WebhookAdded @event, EnvelopeHeaders headers) { UpdateSchema(@event, headers); }
protected void On(WebhookAdded @event) { webhookIds.Add(@event.Id); }