Beispiel #1
0
        /// <summary>
        /// Registers a listener to the OnDataReceived event that only gets called if the received data is of type T.
        /// </summary>
        /// <typeparam name="T">Type of data to listen to.</typeparam>
        /// <param name="action">Action to call when data is received.</param>
        #endregion


        #region Handling Events
        protected void HandleConnect()
        {
            isConnected.Value = true;
            OnConnect?.Raise(this);
        }