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.
|
- using System.IO.Pipelines;
-
- namespace MQTTnet.AspNetCore.Tests.Mockups
- {
- public class DuplexPipeMockup : IDuplexPipe
- {
- public DuplexPipeMockup()
- {
- var pool = new LimitedMemoryPool();
- var pipeOptions = new PipeOptions(pool);
- Receive = new Pipe(pipeOptions);
- Send = new Pipe(pipeOptions);
- }
-
- PipeReader IDuplexPipe.Input => Receive.Reader;
-
- PipeWriter IDuplexPipe.Output => Send.Writer;
-
-
- public Pipe Receive { get; set; }
-
- public Pipe Send { get; set; }
- }
- }
|