public TestInputTopic <K, V> CreateInputTopic <K, V>(string topicName, ISerDes <K> keySerdes, ISerDes <V> valueSerdes) { var pipeBuilder = new SyncPipeBuilder(GetTask(topicName)); var pipeInput = pipeBuilder.Input(topicName, configuration); return(new TestInputTopic <K, V>(pipeInput, configuration, keySerdes, valueSerdes)); }
public TestMultiInputTopic <K, V> CreateMultiInputTopic <K, V>(string[] topics, ISerDes <K> keySerdes = null, ISerDes <V> valueSerdes = null) { Dictionary <string, IPipeInput> pipes = new Dictionary <string, IPipeInput>(); foreach (var t in topics) { var task = GetTask(t); var builder = new SyncPipeBuilder(task); pipes.Add(t, builder.Input(t, configuration)); } return(new TestMultiInputTopic <K, V>(pipes, configuration, keySerdes, valueSerdes)); }
private Dictionary <string, IPipeInput> BuildPipeInputs(string[] topics) { Dictionary <string, IPipeInput> pipes = new Dictionary <string, IPipeInput>(); foreach (var t in topics) { var task = GetTask(t); var syncPipeBuilder = new SyncPipeBuilder(task); var pipeInput = syncPipeBuilder.Input(t, configuration); pipes.Add(t, pipeInput); } return(pipes); }