Example #1
0
        public TagListHandler Build(bool enableRfid = true)
        {
            var readerEndpoint = IPEndPoint.Parse("127.0.0.1:0");
            var simulator      = new SimulatorListener(readerEndpoint);
            var tagListHandler = new TagListHandler();

            simulator.TagListHandler = tagListHandler.Handle;
            var serializedConnectionString = $"Protocol = Alien; Network = {simulator.ListenEndpoint}";
            var settings = checkpointRepository.GetRfidOptions();

            settings.Enabled          = enableRfid;
            settings.ConnectionString = serializedConnectionString;
            checkpointRepository.SetRfidOptions(settings);
            return(tagListHandler);
        }
Example #2
0
        public TagListHandler Build()
        {
            var readerEndpoint = IPEndPoint.Parse("127.0.0.1:0");
            var simulator      = new SimulatorListener(readerEndpoint);
            var tagListHandler = new TagListHandler();

            simulator.TagListHandler = tagListHandler.Handle;
            var serializedConnectionString = $"Protocol = Alien; Network = {simulator.ListenEndpoint}";
            var settings = storageService.GetRfidOptions();

            settings.Enabled          = true;
            settings.ConnectionString = serializedConnectionString;
            storageService.SetRfidOptions(settings);
            return(tagListHandler);
        }