protected virtual void OnConnectEvent() { //Logger.Debug("OnConnectEvent"); OnConnectEventHandler handler = ConnectEvent; handler?.Invoke(); }
protected virtual void RaiseConnectEvent(StateObject state) { //Logger.Debug("OnConnectEvent"); //Logger.Trace(state); OnConnectEventHandler handler = ConnectEvent; handler?.Invoke(state); }
/// <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(); } }