Ejemplo n.º 1
0
        /// <inheritdoc/>
        public virtual async Task HandleAsync(V1WorkflowDeletedDomainEvent e, CancellationToken cancellationToken = default)
        {
            var workflow = await this.GetOrReconcileProjectionAsync(e.AggregateId, cancellationToken);

            await this.Projections.RemoveAsync(workflow, cancellationToken);

            await this.Projections.SaveChangesAsync(cancellationToken);

            await this.PublishIntegrationEventAsync(e, cancellationToken);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the specified <see cref="V1WorkflowDeletedDomainEvent"/>
 /// </summary>
 /// <param name="e">The <see cref="V1WorkflowDeletedDomainEvent"/> to handle</param>
 protected virtual void On(V1WorkflowDeletedDomainEvent e)
 {
 }