public void ConnectWFEvents() { try { _eventNotify = OperationContext.Current.GetCallbackChannel <IWorkflowNotify>(); LogCollector.Instance.SvrNotify = _eventNotify; LocalLogCollector.WriteMessage("控制中心已连接"); // 心跳信号 _isConnected = true; _dateTime = DateTime.Now; } catch (Exception ex) { LocalLogCollector.WriteMessage("注册回调事件异常 " + ex.Message); } }
public void ConnectWFEvents() { _eventNotify = OperationContext.Current.GetCallbackChannel <IWorkflowNotify>(); }