Beispiel #1
0
 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;
 }
Beispiel #2
0
 static NullRegistrationPoint()
 {
     Instance = new NullRegistrationPoint();
 }
 static NullRegistrationPoint()
 {
     Instance = new NullRegistrationPoint();
 }