Example #1
0
        void IHandleChanges.OnAccountRegistered(string AccountId, string OwnerName, string AccountNumber)
        {
            var detail = new AccountDetails {
                Id            = AccountId,
                AccountNumber = AccountNumber,
                OwnerName     = OwnerName,
                Balance       = 0
            };

            Details.Add(AccountId, detail);
            Clients.AddAccountDetails(detail);
        }