protected override void doExecute(String action, String[] args, CallBackContext callbackContext)
 {
     if (TEST.Equals(action))
     {
         test(callbackContext);
     }
 }
        public void invokefunc(String plugin, String action, String jsonedArgs, String success, String fail,
                               String transactionId)
        {
            String[] realArray = JsonConvert.DeserializeObject < String[] > (jsonedArgs);
            var callBackContext = new CallBackContext(this, transactionId);

            debugCordova("[P2] Invoke Plugin : " + plugin + " | action : " + action + " | args : " + jsonedArgs +
                         " | transactionId : " + transactionId);

            if (plugin.Equals(MKV_MODULE))
            {
                var enrolmentPluginImpl = new MkvPluginImpl();
                enrolmentPluginImpl.launchPlugin(action, realArray, callBackContext);
            }
        }
 public void launchPlugin(String action, String[] args, CallBackContext callBackContext)
 {
     ScriptManager.debugCordova("[P3] Launching action : " + action);
     this.action = action;
     this.args = args;
     this.callBackContext = callBackContext;
     try
     {
             pluginWorker = new BackgroundWorker();
             pluginWorker.DoWork += backgroundWorker_doWork;
             pluginWorker.RunWorkerCompleted +=
                 backgroundWorker_runWorkerCompleted;
             pluginWorker.RunWorkerAsync();
     }
     catch (WebException ex)
     {
         handleException(ex);
     }
     catch (Exception ex)
     {
         handleException(ex);
     }
 }
 protected abstract void doExecute(String action, String[] args, CallBackContext callBackContext);
        private void test(CallBackContext callbackContext)
        {
            Application.Exit();

            callbackContext.success(null);
        }