Heres the hypothetical example:
WebCleint wc = new WebClient();
wc.DownloadStringCompleted += wc_DownloadStringCompleted;
wc.DownloadStringAsync(new Uri(callString));
wc = new WebClient();
wc.DownloadStringCompleted += wc_DownloadStringCompleted;
wc.DownloadStringAsync(new Uri(callString));
From my understanding the garbage collector wont grab something until its completly dereferenced. So I guess my REAL question is, does a event registration count as a reference to an object?
Can I make this call and have both returns come back through the same completed method?
I have many different web calls that could be made. They all need to be done async. They can all happen at random times.
Right now I just kinda assume that the way I have it built prevents concurrent calls however thats a bad way to build stuff haha.
I am attempting to avoid creating a stack queue.