public async Task UpdateAsync(WorkflowSetting entity, CancellationToken cancellationToken = default)
        {
            await _mediator.Publish(new WorkflowSettingsSaving(entity), cancellationToken);

            await _store.UpdateAsync(entity, cancellationToken);

            await _mediator.Publish(new WorkflowSettingsSaved(entity), cancellationToken);
        }
 public async Task UpdateAsync(WorkflowSetting entity, CancellationToken cancellationToken)
 {
     entity = Initialize(entity);
     await _store.UpdateAsync(entity, cancellationToken);
 }