コード例 #1
0
        public async Task DeleteAsync(WorkflowSetting entity, CancellationToken cancellationToken = default)
        {
            await _mediator.Publish(new WorkflowSettingsDeleting(entity), cancellationToken);

            await _store.DeleteAsync(entity, cancellationToken);

            await _mediator.Publish(new WorkflowSettingsDeleted(entity), cancellationToken);
        }
コード例 #2
0
ファイル: Delete.cs プロジェクト: mhymhygi/elsa-core
        public async Task <IActionResult> Handle(string id, CancellationToken cancellationToken = default)
        {
            var workflowSettings = await _workflowSettingsStore.FindByIdAsync(id, cancellationToken);

            if (workflowSettings == null)
            {
                return(NotFound());
            }

            await _workflowSettingsStore.DeleteAsync(workflowSettings, cancellationToken);

            return(NoContent());
        }
コード例 #3
0
 public Task DeleteAsync(WorkflowSetting entity, CancellationToken cancellationToken) => _store.DeleteAsync(entity, cancellationToken);