/// <summary> /// 获取连接状态 /// </summary> /// <returns></returns> public Entity.Presentation.Monitor.EtmStatus GetHardwareState(ETong.Entity.Presentation.Monitor.Operate operate) { MonitorRemoteObject service = (MonitorRemoteObject)Activator.GetObject(typeof(MonitorRemoteObject), "Ipc://" + ServerIpcChannelName + "/RemoteObject.Monitor"); return(service.GetHardwareState(operate)); }
/// <summary> /// 获取ETM版本信息 /// </summary> /// <returns></returns> public Entity.Presentation.Monitor.EtmStatus GetEtmVersion() { MonitorRemoteObject service = (MonitorRemoteObject)Activator.GetObject(typeof(MonitorRemoteObject), "Ipc://" + ServerIpcChannelName + "/RemoteObject.Monitor"); return(service.GetEtmVersion()); }
/// <summary> /// 推送广告 /// </summary> /// <returns></returns> public bool PushAd() { MonitorRemoteObject service = (MonitorRemoteObject)Activator.GetObject(typeof(MonitorRemoteObject), "Ipc://" + ServerIpcChannelName + "/RemoteObject.Monitor"); return(service.PushAd()); }