public virtual void Register(TPeripheral peripheral, NullRegistrationPoint registrationPoint)
 {
     if (RegisteredPeripheral != null)
     {
         throw new RegistrationException("Cannot register more than one peripheral.");
     }
     Machine.RegisterAsAChildOf(this, peripheral, registrationPoint);
     RegisteredPeripheral = peripheral;
 }
コード例 #2
0
 static NullRegistrationPoint()
 {
     Instance = new NullRegistrationPoint();
 }