Пример #1
0
        public void DoAsync(string input, AsyncCallback callback)
        {
            Thread worker = new Thread(
                new ParameterizedThreadStart(this._asyncWorker));

            _Blah blah = new _Blah(input, callback);

            worker.Start(blah);
        }
Пример #2
0
        public static void DoAsync(string input, bool SkipGarbage, AsyncCallback callback)
        {
            Thread worker = new Thread(
                new ParameterizedThreadStart(Transliterator._asyncWorker));

            _Blah blah = new _Blah(input, SkipGarbage, callback);

            worker.Start(blah);
        }
Пример #3
0
        void _asyncWorker(object obj)
        {
            _Blah blah = obj as _Blah;

            TranslitResult trAsyncResult =
                new TranslitResult(Do(blah.str));

            blah.callback(trAsyncResult);
        }
Пример #4
0
        static void _asyncWorker(object obj)
        {
            _Blah blah = obj as _Blah;

            TranslitResult trAsyncResult =
                new TranslitResult(Do(blah.str, blah.SkipGarbage));

            blah.callback(trAsyncResult);
        }