public static StreamProcessor Fold(this IStream stream, IPayloadProcessor payloadProcessor = null) { var processor = new StreamProcessor(stream, payloadProcessor ?? DelegateToPrivateEventHandlers.Instance); return(processor); }
public static StreamProcessor Fold(this IReadOnlyStream stream) { var processor = new StreamProcessor(stream); return(processor); }