Пример #1
0
        public void StreamDone()
        {
            if (dest == null)
            {
                throw new Exception("SedStream got done without dest being set.");
            }

            dest.StreamDone();
        }
Пример #2
0
		// static
	       
		public static void DrainStream (StreamReader reader, IMiniStreamSink sink) {
			if (reader == null)
				throw new ArgumentNullException ("reader");
			if (sink == null)
				throw new ArgumentNullException ("sink");

			string line;

			while ((line = reader.ReadLine ()) != null)
				sink.SendLine (line);

			sink.StreamDone ();
		}
Пример #3
0
        // static

        public static void DrainStream(StreamReader reader, IMiniStreamSink sink)
        {
            if (reader == null)
            {
                throw new ArgumentNullException("reader");
            }
            if (sink == null)
            {
                throw new ArgumentNullException("sink");
            }

            string line;

            while ((line = reader.ReadLine()) != null)
            {
                sink.SendLine(line);
            }

            sink.StreamDone();
        }
Пример #4
0
 public override void Close()
 {
     base.Close();
     sink.StreamDone();
     sink = null;
 }