public ComPort(PortConfig portConfig, ComPortConfig comPortConfig) : base(portConfig, "ComPort") { this.comPortConfig = comPortConfig; PortBehavior = new PortBehaviorStorage() { DataDeliveryBehavior = DataDeliveryBehavior.ByteStream, IsClientPort = true }; PrivateBaseState = new BaseState(false, true); PublishBaseState("object constructed"); CreatePort(); }
/// <summary>Creates a Com type IPort implementation from the given portConfig and comPortConfig</summary> /// <param name="portConfig">Provides all configuration details for the port to be created.</param> /// <param name="comPortConfig">Provides the ComPort specific configuration information. Typically derived by parsing the portConfig.SpecStr.</param> /// <returns>the created Com type IPort object.</returns> public static IPort CreateComPort(PortConfig portConfig, ComPortConfig comPortConfig) { return new ComPort(portConfig, comPortConfig); }
/// <summary>Creates a Com type IPort implementation from the given portConfig and comPortConfig</summary> /// <param name="portConfig">Provides all configuration details for the port to be created.</param> /// <param name="comPortConfig">Provides the ComPort specific configuration information. Typically derived by parsing the portConfig.SpecStr.</param> /// <returns>the created Com type IPort object.</returns> public static IPort CreateComPort(PortConfig portConfig, ComPortConfig comPortConfig) { return(new ComPort(portConfig, comPortConfig)); }