Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SiLAWebService"/> class
        /// </summary>
        public SiLAWebService()
        {
            this.Device = SiLADeviceFactory.ConnectTo <IncubatorSiLADevice>(Properties.Settings.Default.InstrumentName);

            string wsdl = string.Format("http://{0}:{1}/{2}.svc?singleWsdl",
                                        Properties.Settings.Default.Server, Properties.Settings.Default.Port, Properties.Settings.Default.ServiceName);

            this.Device.DeviceIdentification.Wsdl = wsdl;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SiLAWebService"/> class
        /// </summary>
        public SiLAWebService()
        {
            this.Device = SiLADeviceFactory.ConnectTo<IncubatorSiLADevice>(Properties.Settings.Default.InstrumentName);

            string wsdl = string.Format("http://{0}:{1}/{2}.svc?singleWsdl",
                Properties.Settings.Default.Server, Properties.Settings.Default.Port, Properties.Settings.Default.ServiceName);

            this.Device.DeviceIdentification.Wsdl = wsdl;
        }