/// <summary> /// This method accepts transfer unti and dispatches it through ApiDispatcher /// which transfers it to appropriate places in CPNet /// </summary> /// <param name="tu"></param> private void receiveTransferUnit(TransferUnit tu) { try { ApiDispatcher.dispatchToken(new Token(tu)); } catch (Exception e) { Console.WriteLine(e); } }
/// <summary> /// This method is actually designed for remote system. It returns API calls that should be intercepted by remote system /// </summary> /// <returns></returns> private APIFullName[] getListOfInterceptedApiCalls() { return(ApiDispatcher.getListOfApiCalls()); }