Exemplo n.º 1
0
        public IEnumerator StartTask(Action <IWorker> asyncMethod)
        {
            SimpleThreadWorker e = new SimpleThreadWorker();

            task = Task.Factory.StartNew(SubThread, new Package(e, asyncMethod));
            return(e);
        }
Exemplo n.º 2
0
 public Package(SimpleThreadWorker inst, Action <IWorker> method)
 {
     this.inst   = inst;
     this.method = method;
 }