public bool Connect() { try { Spine.Start(); Spine.WaitForRunning(); DevicesList = Spine.GetDevices(); foreach (var device_id in DevicesList) { var ds = Spine.LoadDeviceState(device_id); Devices.Add(device_id, ds); } return(true); } catch (Exception e) { T.EXCEPTION(e); return(false); } }
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); } }