Beispiel #1
0
        public TaskObject(Action Action)
        {
            Exceptions = new ExceptionBuffer(8);

            this.Action = Action;
            CreationTime.SetNow();
            TokenSource         = new CancellationTokenSource();
            Token               = TokenSource.Token;
            CancellationOptions = TaskCreationOptions.None;
            //CancellationOptions = TaskCreationOptions.DenyChildAttach;
            Scheduler = TaskScheduler.Default;
        }