public static PipelineBlock <TKey> CreateKeyBlock(string name, TKey key, IDataflowBlock dataflowBlock) { IdentifierData <TKey> identifierData = IdentifierDataFactory.CreateKeyData(name, key); return(new PipelineBlock <TKey>(identifierData, dataflowBlock)); }
public static PipelineBlock CreateCommonBlock(string name, IDataflowBlock dataflowBlock) { IdentifierData identifierData = IdentifierDataFactory.CreateCommonData(name); return(new PipelineBlock(identifierData, dataflowBlock)); }
private PipelineBlock(IdentifierData <TKey> identifierData, IDataflowBlock dataflowBlock) { _identifierData = identifierData ?? throw new ArgumentNullException(nameof(identifierData)); _dataflowBlock = dataflowBlock ?? throw new ArgumentNullException(nameof(dataflowBlock)); }