iocommander input and virtual input
This commit is contained in:
19
VisionBuilder.UI.IOCommander/DefaultIOCommanderFactory.cs
Normal file
19
VisionBuilder.UI.IOCommander/DefaultIOCommanderFactory.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using VisionBuilder.UI.IOCommander.Interfaces;
|
||||
using VisionBuilder.UI.IOCommander.Settings;
|
||||
|
||||
namespace VisionBuilder.UI.IOCommander;
|
||||
|
||||
public class DefaultIOCommanderFactory: IIOCommanderFactory
|
||||
{
|
||||
private readonly IOCommanderSettings _settings;
|
||||
|
||||
public DefaultIOCommanderFactory(IOCommanderSettings settings)
|
||||
{
|
||||
_settings = settings;
|
||||
}
|
||||
|
||||
public IIOCommander Create()
|
||||
{
|
||||
return new IOCommander(_settings.Port);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user