Abort() private méthode

private Abort ( object sender, EventArgs args ) : void
sender object
args EventArgs
Résultat void
Exemple #1
0
            public void Abort(object sender, EventArgs args)
            {
                WebConnection webConnection = ((HttpWebRequest)sender).WebConnection;

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

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