Questions tagged as 'async'

1
answer

Go through a site's response tags C #

I am doing a query in google by C # and I need to get the query return the Query Title and the Query Link returned. I got my return as follows: public class GoogleSearch { private string _TituloPesquisa; private string _LinkPesquisa...
asked by 14.07.2017 / 21:09
1
answer

Download Async + Copy = Copying image 0 bytes

I'm downloading simultaneously multiple photos, and also need to copy to a certain folder. What happens is that it does the copy before finishing the download. public static async Task DownloadData(IEnumerable<FotosProdutos> urls, int...
asked by 14.10.2016 / 16:28
1
answer

AsyncTask aborted during execution does not call any of the post-doInBackground () methods

When I cancel my AsyncTask running, it does not update the mAsyncTaskEstaFinalizada flag. Does anyone know what can it be? When I put breakpoints in methods onCancelled() , onCancelled(resultado) and onPostExecute...
asked by 22.05.2014 / 20:52
2
answers

Parallelism in Sql Server with C #

I'm implementing async methods in C # and would like to know how to proceed when I get into Sql. When I open a connection to the sql server, does it allow me to parallelize only one connection? That is, can I send several queries to him that...
asked by 21.08.2017 / 18:09
1
answer

Method is executed by clicking the button despite making "button01.Enabled = false"

I want to disable a button while the method does not finish. I used button01.Enabled = false; , but even clicking while the button is disabled, the method is called again after it finishes. For example, when I execute the method below a...
asked by 10.08.2017 / 18:03
1
answer

How to load js style google analytcs

I'm developing a project where I would have to add only one tag on the client site and load js with all the functions. follow the example of google analytcs: (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime...
asked by 30.03.2017 / 14:49
2
answers

WinForms C # - Display upload form

I have a main WinForms and would like it to appear as long as the asynchronous task is processing, a new form (with GIF ) would only close when processing is finished. frmProcessor _frmProcessor = new frmProcessor();...
asked by 13.10.2016 / 18:39
1
answer

Load DataSource from ComboBox using asynchronous method

I have a combo box of cities that populate it every time I start my form. I would like someone to help me create an asynchronous method using SqlDataAdapter to fill this combo.     
asked by 26.02.2016 / 14:23
1
answer

Inside ajax I want to create a variable and use it in several places outside of ajax

I want to create a variable inside ajax and use it in several other places, this only works when I use async:false and I know this is no longer recommended, how to do this in a way correct? follow the codes below: JAVASCRIPT &...
asked by 19.04.2016 / 14:36
1
answer

AsyncTask finish execution

I would like to know how I could pause, cancel this function once I close the Activity that is running. private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> { ImageView bmImage; public DownloadImageTask(ImageV...
asked by 12.11.2014 / 19:11