Beispiel #1
0
        public RTServiceImpl()
        {
            if (rtClient.IsAvailable())
            {
                rtClient.SetConnectEventListener(() =>
                {
                    foreach (ConnectListener listener in connectListeners)
                    {
                        listener();
                    }
                });

                rtClient.SetDisconnectEventListener((result) =>
                {
                    foreach (DisconnectListener listener in disconnectListeners)
                    {
                        listener(result);
                    }
                });

                rtClient.SetConnectErrorEventListener((result) =>
                {
                    foreach (ConnectErrorListener listener in connectErrorListeners)
                    {
                        listener(result);
                    }
                });

                rtClient.SetReconnectAttemptEventListener((result) =>
                {
                    foreach (ReconnectAttemptListener listener in reconnectListeners)
                    {
                        listener(result);
                    }
                });
            }
        }
Beispiel #2
0
 public void SetConnectErrorEventListener(ConnectErrorListener fault)
 {
     rtClient.SetConnectErrorEventListener(fault);
 }