예제 #1
0
        public static PipelineBlock <TKey> CreateKeyBlock(string name, TKey key,
                                                          IDataflowBlock dataflowBlock)
        {
            IdentifierData <TKey> identifierData = IdentifierDataFactory.CreateKeyData(name, key);

            return(new PipelineBlock <TKey>(identifierData, dataflowBlock));
        }
예제 #2
0
        public static PipelineBlock CreateCommonBlock(string name,
                                                      IDataflowBlock dataflowBlock)
        {
            IdentifierData identifierData = IdentifierDataFactory.CreateCommonData(name);

            return(new PipelineBlock(identifierData, dataflowBlock));
        }
예제 #3
0
        private PipelineBlock(IdentifierData <TKey> identifierData, IDataflowBlock dataflowBlock)
        {
            _identifierData = identifierData
                              ?? throw new ArgumentNullException(nameof(identifierData));

            _dataflowBlock = dataflowBlock
                             ?? throw new ArgumentNullException(nameof(dataflowBlock));
        }