Beispiel #1
0
        public IBackgroundTaskBuilder <TResult> WithOnCompleteCallback <TResult>(Action <Task <TResult> > callback)
        {
            var builder = new DefaultBackgroundTaskBuilder <TResult>();

            builder._scheduler = _scheduler;
            builder._options   = _options;
            builder._token     = _token;
            builder._callback  = callback;
            return(builder);
        }