mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
17 lines
361 B
C#
17 lines
361 B
C#
using System.IO.Pipelines;
|
|
|
|
namespace MQTTnet.AspNetCore.Tests.Mockups
|
|
{
|
|
public class DuplexPipeMockup : IDuplexPipe
|
|
{
|
|
PipeReader IDuplexPipe.Input => Receive.Reader;
|
|
|
|
PipeWriter IDuplexPipe.Output => Send.Writer;
|
|
|
|
|
|
public Pipe Receive { get; set; } = new Pipe();
|
|
|
|
public Pipe Send { get; set; } = new Pipe();
|
|
}
|
|
}
|