示例#1
0
        public void Run()
        {
            //Connect to Touch Portal:
            _client.Connect();

            //Start sending messages:
            SendMessages();
        }
示例#2
0
        /// <summary>
        /// Initialized the Touch Portal Message Processor
        /// </summary>
        private bool Initialize()
        {
            if (!_client.Connect())
            {
                return(false);
            }

            // Setup SimConnect Events
            _simConnectService.OnDataUpdateEvent += SimConnectEvent_OnDataUpdateEvent;
            _simConnectService.OnConnect         += SimConnectEvent_OnConnect;
            _simConnectService.OnDisconnect      += SimConnectEvent_OnDisconnect;

            return(true);
        }
示例#3
0
 public void Connect()
 => _client.Connect();
 public void Run()
 {
     _client.Connect();
 }
 public void Init()
 {
     //Connecting to TouchPortal:
     _client.Connect();
 }