BACnet.Explorer.Core.Models.EthernetPortProcess.EthernetPortProcess C# (CSharp) Method

EthernetPortProcess() public method

public EthernetPortProcess ( ) : System
return System
        public EthernetPortProcess()
        {
            this.Name = Constants.EthernetPortDefaultName;
            this.ProcessId = BACnet.Ethernet.DefaultProcessIds.EthernetPort;

            var devices = LibPcapLiveDeviceList.Instance.Where(dev => dev.Interface != null);
            var device = devices.FirstOrDefault();
            DeviceName = device == null ? null : device.Name;
        }