예제 #1
0
        public SplitStream(IEnumerable<Stream> targetStreams, ISplitStreamExceptionHandler exceptionHandler)
        {
            if (targetStreams == null)
                targetStreams = Enumerable.Empty<Stream>();

            _targetStreams = targetStreams.ToArray();

            _exceptionHandler = exceptionHandler;
        }
예제 #2
0
        public SplitStreamBuilder SetExceptionHandler(ISplitStreamExceptionHandler exceptionHandler)
        {
            _exceptionHandler = exceptionHandler;

            return this;
        }