Show / Hide Table of Contents

    Class PortFinder

    Finds connected serialdevices automagically on windows machines.

    Inheritance
    System.Object
    PortFinder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FosterBuster.IU880B.Utilities
    Assembly: IU880B.dll
    Syntax
    public sealed class PortFinder

    Constructors

    | Improve this Doc View Source

    PortFinder(IOptions<IU880BOptions>, ILoggerFactory)

    Initializes a new instance of the PortFinder class.

    Declaration
    public PortFinder(IOptions<IU880BOptions> options, ILoggerFactory loggerFactory)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<IU880BOptions> options

    options object.

    Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

    logger factory.

    Properties

    | Improve this Doc View Source

    ConnectedPortName

    Gets the first port number mathcing the device name.

    Declaration
    public string ConnectedPortName { get; }
    Property Value
    Type Description
    System.String

    A string representation of the devices COM-port.

    | Improve this Doc View Source

    ConnectedSerialPort

    Gets a serial connection to the first port number matching the device name.

    Declaration
    public SerialPort ConnectedSerialPort { get; }
    Property Value
    Type Description
    System.IO.Ports.SerialPort

    the connected System.IO.Ports.SerialPort.

    Methods

    | Improve this Doc View Source

    DeviceAvailable()

    Checks if any device is available.

    Declaration
    public bool DeviceAvailable()
    Returns
    Type Description
    System.Boolean

    A boolean indicating if any device is available.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX