/// <inheritdoc /> protected override (GraphStageLogic, IControl) Logic(SourceShape <ConsumeResult <K, V> > shape, Attributes inheritedAttributes) { var logic = new ExternalSingleSourceLogic <K, V, ConsumeResult <K, V> >(shape, Consumer, Subscription, inheritedAttributes, _ => new PlainMessageBuilder <K, V>()); return(logic, logic.Control); }
/// <inheritdoc /> protected override (GraphStageLogic, IControl) Logic(SourceShape <CommittableMessage <K, V> > shape, Attributes inheritedAttributes) { var logic = new ExternalSingleSourceLogic <K, V, CommittableMessage <K, V> >(shape, Consumer, Subscription, inheritedAttributes, GetMessageBuilder, AutoCreateTopics); return(logic, logic.Control); }