示例#1
0
        /// <summary>
        /// Handles the specific domain event.
        /// </summary>
        /// <param name="domainEvent">The domain event.</param>
        /// <param name="cancellationToken">The cancellation token.</param>
        /// <returns></returns>
        private async Task HandleSpecificDomainEvent(PlayerSignedUpEvent domainEvent,
                                                     CancellationToken cancellationToken)
        {
            await this.Manager.UpdateTournamentInReadModel(domainEvent, cancellationToken);

            await this.Manager.InsertPlayerSignUpForTournamentToReadModel(domainEvent, cancellationToken);
        }
 public static PlayerSignedUpEvent GetPlayerSignedUpEvent()
 {
     return(PlayerSignedUpEvent.Create(TournamentTestData.AggregateId, TournamentTestData.PlayerId));
 }