Esempio n. 1
0
        public void Connect()
        {
            if (_session != null)
            {
                return;
            }

            _session = new HelperSession();

            // arbitrary settings used for example code
            string         clientId = "SessionExample";
            List <Setting> settings = new List <Setting>();

            settings.Add(BuildSetting("AutoCreateDataSets", true));
            settings.Add(BuildSetting("PacketDelay", 500));

            string result = _session.Connect(_historian, clientId, settings.ToArray());
        }