Example #1
0
        public override void Process()
        {
            base.Process();

            _WebclientCtor                   = _webclientCtor(_Opts.URI, _Opts.ReconnectPeriod);
            _WebclientCtor.OnConnected      += _WebclientCtor_OnConnected;
            _WebclientCtor.OnConnectError   += _WebclientCtor_OnConnectError;
            _WebclientCtor.OnReceiveError   += _WebclientCtor_OnReceiveError;
            _WebclientCtor.OnReceiveMessage += _WebclientCtor_OnReceiveMessage;
            _WebclientCtor.ConnectToServerAsync();

            //WatchTasks(task);
        }