public async Task <WorkflowDefinitionVersion> AddAsync(WorkflowDefinitionVersion definition, CancellationToken cancellationToken = default)
        {
            var result = await decoratedStore.AddAsync(definition, cancellationToken);

            await PublishUpdateEventAsync(cancellationToken);

            return(result);
        }
Пример #2
0
        public async Task AddAsync(WorkflowDefinition entity, CancellationToken cancellationToken = default)
        {
            await _mediator.Publish(new WorkflowDefinitionSaving(entity), cancellationToken);

            await _store.AddAsync(entity, cancellationToken);

            await _mediator.Publish(new WorkflowDefinitionSaved(entity), cancellationToken);
        }
        public async Task AddAsync(WorkflowDefinitionVersion definition, CancellationToken cancellationToken = default)
        {
            await decoratedStore.AddAsync(definition, cancellationToken);

            await PublishUpdateEventAsync(cancellationToken);
        }
Пример #4
0
 public async Task AddAsync(WorkflowDefinition entity, CancellationToken cancellationToken = default)
 {
     entity = Initialize(entity);
     await _store.AddAsync(entity, cancellationToken);
 }