You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DuplexPipeMockup.cs 361 B

6 years ago
12345678910111213141516
  1. using System.IO.Pipelines;
  2. namespace MQTTnet.AspNetCore.Tests.Mockups
  3. {
  4. public class DuplexPipeMockup : IDuplexPipe
  5. {
  6. PipeReader IDuplexPipe.Input => Receive.Reader;
  7. PipeWriter IDuplexPipe.Output => Send.Writer;
  8. public Pipe Receive { get; set; } = new Pipe();
  9. public Pipe Send { get; set; } = new Pipe();
  10. }
  11. }