/// <inheritdoc/> public virtual async Task HandleAsync(V1WorkflowInstanceCreatedDomainEvent e, CancellationToken cancellationToken = default) { var metrics = await this.GetOrCreateV1OperationalReportsForAsync(e.CreatedAt, cancellationToken); metrics.TotalInstances++; await this.OperationalReports.UpdateAsync(metrics, cancellationToken); await this.OperationalReports.SaveChangesAsync(cancellationToken); }
/// <inheritdoc/> public virtual async Task HandleAsync(V1WorkflowInstanceCreatedDomainEvent e, CancellationToken cancellationToken = default) { await this.GetOrReconcileProjectionAsync(e.AggregateId, cancellationToken); await this.PublishIntegrationEventAsync(e, cancellationToken); }