/// <inheritdoc/> public virtual async Task HandleAsync(V1WorkflowProcessLogOutputDomainEvent e, CancellationToken cancellationToken = default) { var process = await this.GetOrReconcileProjectionAsync(e.AggregateId, cancellationToken); process.Logs += e.Log + Environment.NewLine; await this.Projections.UpdateAsync(process, cancellationToken); await this.Projections.SaveChangesAsync(cancellationToken); }
/// <summary> /// Handles the specified <see cref="V1WorkflowProcessLogOutputDomainEvent"/> /// </summary> /// <param name="e">The <see cref="V1WorkflowProcessLogOutputDomainEvent"/> to handle</param> protected virtual void On(V1WorkflowProcessLogOutputDomainEvent e) { this.LastModified = e.CreatedAt; this.Logs += e.Log + Environment.NewLine; }