示例#1
0
        protected virtual void OnConnectEvent()
        {
            //Logger.Debug("OnConnectEvent");

            OnConnectEventHandler handler = ConnectEvent;

            handler?.Invoke();
        }
示例#2
0
        protected virtual void RaiseConnectEvent(StateObject state)
        {
            //Logger.Debug("OnConnectEvent");
            //Logger.Trace(state);

            OnConnectEventHandler handler = ConnectEvent;

            handler?.Invoke(state);
        }
示例#3
0
        /// <summary>
        /// Handle connect event
        /// </summary>
        /// <param name="response">The TP Pair Response</param>
        private void HandlePairEvent(PairResponse response)
        {
            // Good pairing message returned
            if (!string.IsNullOrEmpty(response?.PluginVersion))
            {
                IsPaired = true;

                OnConnectEventHandler?.Invoke();
            }
        }