public async Task DeleteAsync(WebhookDefinition entity, CancellationToken cancellationToken = default) { await _mediator.Publish(new WebhookDefinitionDeleting(entity), cancellationToken); await _store.DeleteAsync(entity, cancellationToken); await _mediator.Publish(new WebhookDefinitionDeleted(entity), cancellationToken); }
public Task DeleteAsync(WebhookDefinition entity, CancellationToken cancellationToken) => _store.DeleteAsync(entity, cancellationToken);