public void SetUp()
        {
            _logger = new Log4NetLogger();

            _tagImporter = new BeckhoffOnlineTagImporter(_logger);
            _tagImporter.Initialize(Global.AdsAddress, Global.AdsPort);
        }
Пример #2
0
        public void SetUp()
        {
            _logger        = new Log4NetLogger();
            _tagController = new BeckhoffTagController(Global.AdsAddress, Global.AdsPort, _logger);
            _tagListener   = new BeckhoffPollingTagListener(Global.AdsAddress, Global.AdsPort, new GlobalLock(), _logger);

            _tagController.StartConnection();
            _tagListener.StartListening();

            _tagImporter = new BeckhoffOnlineTagImporter(_logger);
            _tagImporter.Initialize(Global.AdsAddress, Global.AdsPort);
        }
Пример #3
0
 /// <summary>
 /// Initializes the instance with the specified items.
 /// </summary>
 /// <param name="tagListener">The tag listener this instance uses to read tags.</param>
 /// <param name="address">The address under which the tags can be found.</param>
 /// <param name="port">The port under which the the tags can be found.</param>
 public void Initialize(ITagListener tagListener, string address, int port = 0)
 {
     _tagListener = tagListener;
     _tagImporter.Initialize(address, port);
 }