Beispiel #1
0
 public override void GetCommObj(ref CommClass a)
 {
     if (a is Protocol)
     {
         a = ActiveProtocol;
     }
     else
     {
         base.GetCommObj(ref a);
     }
 }
Beispiel #2
0
 public virtual void GetCommObj(ref CommClass a)
 {
     if (a.GetType() == base.GetType())
     {
         a = this;
     }
     else
     {
         if (LowerLayerObj == null)
         {
             a = null;
             throw new Exception("The object requested was not available in the Communication Driver");
         }
         LowerLayerObj.GetCommObj(ref a);
     }
 }
Beispiel #3
0
 protected void SetLowerLayerObj(CommClass a)
 {
     LowerLayerObj = a;
 }