コード例 #1
0
        private void requestResponseThread(WriteToken token, String str, StringListCallback callback)
        {
            writeToPipe(token, str);
            String        response          = waitForResponse();
            List <String> formattedResponse = formatResponse(response);

            callback(formattedResponse);
        }
コード例 #2
0
        public void requestGlobalImageSources(StringListCallback callback)
        {
            Thread thread = new Thread(() => requestResponseThread(WriteToken.REQUEST_GLOBAL_IMAGE_SOURCES, "", callback));

            thread.Start();
        }