Abort() private method

private Abort ( object sender, EventArgs args ) : void
sender object
args EventArgs
return void
示例#1
0
            public void Abort(object sender, EventArgs args)
            {
                WebConnection webConnection = ((HttpWebRequest)sender).WebConnection;

                if (webConnection == null)
                {
                    webConnection = Connection;
                }
                webConnection.Abort(sender, args);
            }
示例#2
0
            public void Abort(object sender, EventArgs args)
            {
                WebConnection other = ((HttpWebRequest)sender).WebConnection;

                if (other == null)
                {
                    other = Connection;
                }
                other.Abort(sender, args);
            }