Add project files.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.IO.Ports;
|
||||
|
||||
namespace TheXamlGuy.Framework.Serial;
|
||||
|
||||
public class SerialStreamer : ISerialStreamer
|
||||
{
|
||||
private readonly SerialPort serialPort;
|
||||
|
||||
public SerialStreamer(SerialPort serialPort)
|
||||
{
|
||||
this.serialPort = serialPort;
|
||||
}
|
||||
|
||||
public Stream Create()
|
||||
{
|
||||
return serialPort.BaseStream;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user