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 DoWork() { callbackService.init(restClient); // call GetStatus to see if the service is connected... }