Skip to content

Interface IDeviceFactory

Namespace: Belay.Extensions.Factories
Assembly: Belay.Extensions.dll

Factory for creating device instances with dependency injection.

csharp
public interface IDeviceFactory

Methods

CreateDevice(DeviceConnection)

Creates a device instance with the specified connection.

CreateSerialDevice(string, int?)

Creates a device instance with serial communication.

CreateSubprocessDevice(string, string[]?)

Creates a device instance with subprocess communication for testing.

Released under the Apache License 2.0.