Beispiel #1
0
        public void OnRequestHandling(NetworkEventArgs e)
        {
            var slotId = UrlHelper.ParseQuery(e.Url)["slotId"];

            if (_slotId == slotId)
            {
                return;
            }
            _slotId = slotId;
            Observable.Return(0).Subscribe(async w => await SyncProgram());
        }
Beispiel #2
0
 public void OnHandlingResponse(NetworkEventArgs e)
 {
     Task.Run(() =>
     {
         foreach (var responseAware in _responseAwares)
         {
             if (responseAware.Item1.Invoke(e))
             {
                 responseAware.Item2.OnResponseHandling(e);
             }
         }
     });
 }