public void DoAsync(string input, AsyncCallback callback) { Thread worker = new Thread( new ParameterizedThreadStart(this._asyncWorker)); _Blah blah = new _Blah(input, callback); worker.Start(blah); }
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); }
void _asyncWorker(object obj) { _Blah blah = obj as _Blah; TranslitResult trAsyncResult = new TranslitResult(Do(blah.str)); blah.callback(trAsyncResult); }
static void _asyncWorker(object obj) { _Blah blah = obj as _Blah; TranslitResult trAsyncResult = new TranslitResult(Do(blah.str, blah.SkipGarbage)); blah.callback(trAsyncResult); }