示例#1
0
            public void GotMarried(string userId)
            {
                var user = db.First(a => a.Id.Equals(userId));

                user.IsMarried = true;

                // propagate changes to other parts of the code
                eventEmitter.Publish(new MaritalStatusChanged(userId, true));
            }