Ejemplo n.º 1
0
 public static IPassThrough Pipe(
     this Stream source,
     IPassThrough other)
 {
     return(new StreamSource(source, true)
            .Pipe(other));
 }
Ejemplo n.º 2
0
 public static ISink Pipe(
     this IPassThrough source,
     Stream other)
 {
     return(source.Pipe(
                new StreamSink(other, true)
                ));
 }
Ejemplo n.º 3
0
 public IPassThrough Pipe(IPassThrough pipe)
 {
     Pipe(pipe as ISink);
     return(pipe);
 }
Ejemplo n.º 4
0
 public IPassThrough Pipe(IPassThrough pipe)
 {
     _sinks.Add(pipe);
     pipe.SetSource(this);
     return(pipe);
 }