WriteTo() публичный Метод

public WriteTo ( Stream stream ) : void
stream Stream
Результат void
Пример #1
0
            static void WriteToRequestStream(HttpTransportAsyncResult self, Stream stream, HttpContent content)
            {
                if (self.timedOut)
                {
                    throw new TimeoutException();
                }

                if (self.cancelled)
                {
                    throw new OperationCanceledException();
                }

                self.timedOutReason = TimeoutReason.WriteToRequestStream;
                try
                {
                    Trace(self, "starting to writeto");
                    content.WriteTo(stream);
                    Trace(self, "ending writeto");
                }
                catch (Exception e)
                {
                    Trace(self, "got exception during writeto: " + e);
                    throw;
                }
                stream.Close();
                Trace(self, "closed request stream");
            }