Questions tagged as 'task'

1
answer

Use synchronous or asynchronous tasks to collect print counters

I'm trying to develop a process that performs the collection of some printer counters via SNMP protocol, I thought about using Threads to perform this process, I refaced to use tasks, but I do not know if I should use an async await for this tas...
asked by 27.09.2017 / 14:27
0
answers

InvokeMainThread Xamarin

I'm having a problem invoking a UIThread in PCL. I made a method like this: private void PopularConteudo() { Task<List<Departamento>> taskDep = new Task<List<Departamento>>(() => {...
asked by 18.03.2017 / 01:49
1
answer

Difference between Task and Thread

I need to create a C # executable and I have the doubts: Do with thread or do with task ? In practice is there any difference between using Task and the "traditional" multi-thread ?? Is it true that a task...
asked by 13.04.2016 / 18:57
1
answer

Interpret if link is being executed by browser or cronjob [closed]

I have a cronjob running but practically the link (code in PHP) is published because for the cronjob to work the authentication verification system is disabled. So I would like to know some way so that this link is not made public by the bro...
asked by 24.12.2016 / 02:57
2
answers

Is it wrong to return null in a Task?

I have the following implementation of MemoryCache : public Task<News[]> GetCandidateNewsAsync(string candidate) { return _cache.GetOrCreateAsync(candidate, async factory =>// _cache é um IMemoryCache { var candi...
asked by 02.08.2018 / 23:33
1
answer

Task continuous execution even after exception

The method StaticReports.AreaData that is within the Task below is returning an exception already handled in the method itself, the problem is that the Task continues execution of the next line var links = ListLists.ListLinksDownlaod (driver)...
asked by 05.04.2018 / 17:45
1
answer

Performing a specific task on a specific date and time

I'm trying to develop a small system that sends an email every Tuesday at 08:00 in the morning. But I'm a bit confused, I can already send the email and check if it's Tuesday, but I do not know if it's correct. The system keeps running,...
asked by 08.09.2015 / 14:37
0
answers

Gulp task does not work

I'm studying Gulp and for testing I did like this: var gulp = require("gulp") var html = require("gulp-htmlmin"); var imagemin = require("imagemin"); gulp.task("default",function(){ gulp.src('.src/img/*.jpg').pipe(imagemin()).pipe( gulp...
asked by 19.11.2018 / 01:59
0
answers

Parallel Task How to improve performance of this function

I'd like a suggestion to improve the performance of these methods. It has taken them too long to finish. Please if the question is not very clear just to mention that I try to improve I will make some images available with the codes. https://i.s...
asked by 23.09.2018 / 04:26
0
answers

ListView receive update of different pages

I'm developing a project and to avoid creating screens with similar functions, I've created a generic query display screen. Basically, the user chooses a brand and sets it to the screen with a listview that shows all the brands available, so he...
asked by 05.06.2018 / 13:01