public async Task UpdateAsync(WebhookDefinition entity, CancellationToken cancellationToken = default)
        {
            await _mediator.Publish(new WebhookDefinitionSaving(entity), cancellationToken);

            await _store.UpdateAsync(entity, cancellationToken);

            await _mediator.Publish(new WebhookDefinitionSaved(entity), cancellationToken);
        }
Exemple #2
0
 public async Task UpdateAsync(WebhookDefinition entity, CancellationToken cancellationToken)
 {
     entity = Initialize(entity);
     await _store.UpdateAsync(entity, cancellationToken);
 }