CQRS_ES.Models.AccountInfoProjection.Handle C# (CSharp) Method

Handle() public method

public Handle ( AccountRegisteredEvent @event ) : void
@event AccountRegisteredEvent
return void
        public void Handle(AccountRegisteredEvent @event)
        {
            if (AccountInfos.All(x => x.AccountId != @event.AccountId))
                AccountInfos.Add(new AccountInfo {AccountId = @event.AccountId});
        }
AccountInfoProjection