Пример #1
0
 /// <summary>
 /// Handles the specified <see cref="V1WorkflowCreatedDomainEvent"/>
 /// </summary>
 /// <param name="e">The <see cref="V1WorkflowCreatedDomainEvent"/> to handle</param>
 protected virtual void On(V1WorkflowCreatedDomainEvent e)
 {
     this.Id           = e.AggregateId;
     this.CreatedAt    = e.CreatedAt;
     this.LastModified = e.CreatedAt;
     this.Definition   = e.Definition;
 }
Пример #2
0
        /// <inheritdoc/>
        public virtual async Task HandleAsync(V1WorkflowCreatedDomainEvent e, CancellationToken cancellationToken = default)
        {
            await this.GetOrReconcileProjectionAsync(e.AggregateId, cancellationToken);

            await this.PublishIntegrationEventAsync(e, cancellationToken);
        }