manages/start/stops the REST server used to listen for callback messages
        public RemoteRESTCloverConnector(CloverDeviceConfiguration config)
        {
            Thread workerThread = new Thread(DoWork);

            workerThread.IsBackground = true;

            callbackService = new CallbackController(this);
            workerThread.Start();

            CardEntryMethod = CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT | CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE | CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS;
        }
예제 #2
0
        public void InitializeConnection()
        {
            if (callbackService == null)
            {
                callbackService = new CallbackController(this);
                callbackService.init(restClient);

                CardEntryMethod = CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT | CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE | CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS;

                listeners.ForEach(listener => callbackService.AddListener(listener));
            }
        }
        public void InitializeConnection()
        {
            if (callbackService == null)
            {
                callbackService = new CallbackController(this);
                callbackService.init(restClient);

                CardEntryMethod = CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT | CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE | CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS;

                listeners.ForEach(listener => callbackService.AddListener(listener));
            }
        }