Exemple #1
0
        private Filterchain(List <IStream> outputsToUse)
        {
            if (outputsToUse == null || outputsToUse.Count == 0)
            {
                throw new ArgumentNullException("outputsToUse");
            }

            Id          = Guid.NewGuid().ToString();
            ReceiptList = new List <StreamIdentifier>();
            OutputList  = new List <FilterchainOutput>();
            Filters     = new ForStreamCollection <IFilter>(outputsToUse.First().GetType());
            OutputList.AddRange(outputsToUse.Select(output => FilterchainOutput.Create(this, output)));
        }
Exemple #2
0
        public void CreateOutput(IStream stream)
        {
            var filterchainOutput = FilterchainOutput.Create(this, stream);

            OutputList.Add(filterchainOutput);
        }