Пример #1
0
        protected override void OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
        {
            var eventArgs = new RedirectDownloadStringCompletedEventArgs();

            eventArgs.EventArgs   = e;
            eventArgs.RedirectUri = ResponseUri;

            RedirectDownloadStringCompleted(this, eventArgs);

            base.OnDownloadStringCompleted(e);
        }
Пример #2
0
        void OnDownloadCompleted(object sender, RedirectDownloadStringCompletedEventArgs e)
        {
            var req = GetRequest(r => e.EventArgs.UserState == r);

            if (req == null)
            {
                return;
            }

            if (e.EventArgs.Error != null)
            {
                IRC.Instance.Send(req.Channel, "{0}: Unable to request a fennec: {1}", req.Requester.Nickname, e.EventArgs.Error.Message);
                return;
            }

            IRC.Instance.Send(req.Channel, "{0}: {1}", req.Requester.Nickname, e.RedirectUri);
        }