Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <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));
 }