Example #1
0
 public bool Connect()
 {
     try
     {
         Spine = (ISpineInstance)Activator.GetObject(typeof(ISpineInstance), ServerUri);
         if (!RemotingServices.IsTransparentProxy(Spine))
         {
             throw new Exception(
                       "El modulo Spine esta configurado de forma inaporpiada, debe ser accesible por Remoting.");
         }
         Spine.Start();
         Spine.WaitForRunning();
         DevicesList = Spine.GetDevices();
         Spine.AttachClient(Sink, Description);
         return(true);
     }
     catch
     {
         // STrace.Exception(GetType().FullName,e);
         Spine = null;
         return(false);
     }
 }