예제 #1
0
        internal ShelfAggregate(Guid shelfId, string name)
        {
            this.AggregateId = shelfId;
            var creationEvent = new ShelfCreated(shelfId, name);

            this.RaiseEvent(creationEvent);
        }
예제 #2
0
        void ShelfCreated(ShelfCreated message)
        {
            _log.DebugFormat("[Shelf:{0}] Shelf created at {1} ({2})", _name, message.Address, message.PipeName);

            _reference.CreateShelfChannel(message.Address, message.PipeName);
        }
예제 #3
0
 private void Apply(ShelfCreated obj)
 {
     this.AggregateId  = obj.AggregateId;
     this.ShelfDetails = new ShelfDetailsEntity(obj.AggregateId, obj.Name);
     this.Games        = new List <GameEntity>();
 }