public void Register(IUSBHub peripheral, USBRegistrationPoint registrationPoint) { peripheral.Connected += Connected; peripheral.Disconnected += Disconnected; peripheral.RegisterHub += RegisterHub; peripheral.ActiveDevice += ActiveDevice; AttachDevice(peripheral, registrationPoint.Address.Value); machine.RegisterAsAChildOf(this, peripheral, registrationPoint); }
public void Register(IUSBPeripheral peripheral, USBRegistrationPoint registrationPoint) { AttachDevice(peripheral, registrationPoint.Address.Value); machine.RegisterAsAChildOf(this, peripheral, registrationPoint); registrationPoints.Add(peripheral, registrationPoint); }