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); }
public async Task UpdateAsync(WebhookDefinition entity, CancellationToken cancellationToken) { entity = Initialize(entity); await _store.UpdateAsync(entity, cancellationToken); }