System.Net.CommandStream.WriteCallback C# (CSharp) Method

WriteCallback() private static method

private static WriteCallback ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void
        private static void WriteCallback(IAsyncResult asyncResult)
        {
            CommandStream connection = (CommandStream)asyncResult.AsyncState;
            try
            {
                try
                {
                    connection.EndWrite(asyncResult);
                }
                catch (IOException)
                {
                    connection.MarkAsRecoverableFailure();
                    throw;
                }
                catch
                {
                    throw;
                }
                Stream stream = null;
                if (connection.PostSendCommandProcessing(ref stream))
                    return;
                connection.ContinueCommandPipeline();
            }
            catch (Exception e)
            {
                connection.Abort(e);
            }
        }