internal ShelfAggregate(Guid shelfId, string name) { this.AggregateId = shelfId; var creationEvent = new ShelfCreated(shelfId, name); this.RaiseEvent(creationEvent); }
void ShelfCreated(ShelfCreated message) { _log.DebugFormat("[Shelf:{0}] Shelf created at {1} ({2})", _name, message.Address, message.PipeName); _reference.CreateShelfChannel(message.Address, message.PipeName); }
private void Apply(ShelfCreated obj) { this.AggregateId = obj.AggregateId; this.ShelfDetails = new ShelfDetailsEntity(obj.AggregateId, obj.Name); this.Games = new List <GameEntity>(); }