/// <summary>
        /// Gets instance (if instance has not been created - creates it).
        /// </summary>
        /// <returns>DeviceIoSchemaSet</returns>
        public static DeviceIoSchemaSet GetInstance()
        {
            if (_instance == null)
            {
                _instance = new DeviceIoSchemaSet();
            }

            return(_instance);
        }
示例#2
0
        protected override DeviceIOPortClient CreateClient()
        {
            Binding binding =
                CreateBinding(false,
                              new IChannelController[] { new SoapValidator(DeviceIoSchemaSet.GetInstance()) });
            DeviceIOPortClient client = new DeviceIOPortClient(binding, new EndpointAddress(GetIoServiceAdderss()));

            return(client);
        }