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);
        }
Esempio n. 2
0
 public Task DeleteAsync(WebhookDefinition entity, CancellationToken cancellationToken) => _store.DeleteAsync(entity, cancellationToken);