コード例 #1
0
 public void ProcessAction(HardwareSupplyCreatedEvent eventObject)
 {
     this.AppendInfoLog(string.Format("Composant id:{0} du matériel id:'{1}' ajouté", eventObject.ComponentId, eventObject.HardwareId));
 }
コード例 #2
0
        public void ProcessAction(HardwareSupplyCreatedEvent eventObject)
        {
            if (CheckIfCurrentCatalog(eventObject)) return;

            var catalog = this.repository.FindById(eventObject.CatalogId);
            var hardware = catalog.Hardwares.Where(x => x.Id == eventObject.HardwareId).FirstOrDefault();

            var result = Map(eventObject.CatalogId, hardware);

            this.catalogView.UpdateHardware(result);
        }