Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 3.59 KB

Summary.Pipes.PipeExtensions.md

File metadata and controls

92 lines (66 loc) · 3.59 KB
public static class PipeExtensions

Extension methods for IPipe<I, O>.

Methods

public static IPipe<I, Unit> Fold<I>(this IPipe<I, Unit[]> self)

Folds the result of the specified pipe into a single Unit value.

public static Task<O> Run<O>(this IPipe<Unit, O> self)

Asynchronously runs the pipe.

public static IPipe<I, O2> Then<I, O1, O2>(this IPipe<I, O1> a, IPipe<O1, O2> b)

Composes the pipe with another pipe so that the output of the first pipe is passed as an input to the second pipe.

public static IPipe<I, O> Then<I, O>(this IPipe<I, O> a, IPipe<O, O> b, bool when)

Composes the pipe with another pipe so that the output of the first pipe is passed as an input to the second pipe.

public static IPipe<I, O2> Then<I, O1, O2>(this IPipe<I, O1> a, Func<O1, O2> map)

Constructs a new pipe that will apply the specified select function to the output of the current pipe.

public static IPipe<I, O> Then<I, O>(this IPipe<I, O> a, Func<O, O> map, bool when)

Constructs a new pipe that will apply the specified select function to the output of the current pipe.

public static IPipe<I, O2[]> ThenForEach<I, O1, O2>(this IPipe<I, O1[]> a, IPipe<O1, O2> b)

Constructs a new pipe that will apply the specified map pipe to the each element of the output of the current pipe.

public static IPipe<I, O> Tee<I, O>(this IPipe<I, O> a, Action<O> action)

Constructs a new pipe that will execute the specified action on the output.

public static IPipe<I, O> Logged<I, O>(this IPipe<I, O> self, ILoggerFactory factory, string message)

Logs the execution of the given pipe using the specified logger factory.

public static IPipe<I, O> Logged<I, O>(this IPipe<I, O> self, ILoggerFactory factory, Func<I, string> message)

Logs the execution of the given pipe using the specified logger factory.

public static IPipe<I, O> Logged<I, O>(this IPipe<I, O> self, ILogger logger, string message)

Logs the execution of the given pipe using the specified logger.

public static IPipe<I, O> Logged<I, O>(this IPipe<I, O> self, ILogger logger, Func<I, string> message)

Logs the execution of the given pipe using the specified logger.