public async ValueTask DisposeAsync() { OutputProducer.Dispose(); PipeWriter.Complete(); await ProcessingTask; }
private OutputProducer CreateOutputProducer(PipeOptions pipeOptions) { var pipe = _pipeFactory.Create(pipeOptions); var serviceContext = new TestServiceContext(); var socketOutput = new OutputProducer( pipe, "0", serviceContext.Log, Mock.Of <ITimeoutControl>()); return(socketOutput); }