Hi Jeff, I have an async page in ASP.NET where I do a database lookup on during the OnInit event of the page lifecycle instead of the OnPreRenderComplete (yes...
I am not an ASP.NET expert and I have very little experience using my AE with it. Perhaps others in this group have more experience. I do have an ASP.NET web...
Jeff, thanks for the quick reply. Any code I have in the actual begin/end handlers execute flawlessly as expected. It's only when it's outside those methods...
I do not make the source code available. However, I don’t think it will help you at all. There is definitely no relationship between the Being/End handler...
I wish I had just waited for your email... It took me a little while but I went ahead and decompiled just enough of your DLL to get the AE build into my own...
No, there are no other issues you’d run into with it being set to null. I can’t seem to find where in my book I mention that QUWI doesn’t copy the...
Thanks Jeff. Regarding the QUWI, I feel like an idiot for saying this but I went back into the book and re-read the section starting on 592 "Using the Thread...
Hi Jeff, I've recently updated to the latest version of the PowerThreading DLL and am finding that the AE.BeginExecute method will return a null IAsyncResult...
Your code did not compile for me as is so I had to make some changes to it. After I made some changes to it, I am unable to repro what you describe. Perhaps...
Here's an updated code sample. I mis-copied the previous sample. The exception I'm getting here is a NullReferenceException. I'm still in the process of...
I'd like to be able to write something like this so that I can cancel the command later... conn.Open(); var cmd = new SqlCommand("sleepy_prc " + OpnConnCnt,...
Elegant is in the eye of the beholder but this should work: var dr = cmd.BeginExecuteNonQuery(ae.End(0, r=>cmd.EndExecuteNonQuery(r)), OpnConnCnt); -- Jeffrey...
Hi Jeffrey, I am planning to use OneManyResourceLock from the power threading library. My situation is as follows: * If the resource isn't created yet,...
* If the resource isn't created yet, readers and writers should wait until the resource is created [JR] When you create the OMRL, you can immediately take...
Thanks for the response Jeffrey. The point I was trying to make earlier was: if a writer comes in, I want the writer to get access immediately even though...
Hi Jeffrey, Inside the enumerator I need to perform some CRUD operations on a database. I created a wrapper class for that. What I want is to have only one...
Wow! This is a very complex scenario. And, I don't think you can do it without blocking a thread somewhere. I spent about 2 hours trying to code it up for you...
It's not clear to me from this code what you are trying to do. If you declare a local Singleton<IDataWriter> inside an iterator, then you will create one...
Hi, I have to showcase that Async client of a web service is better than a sync client. I have made Async client using AsyncEnumerator. Now, In order to proof...
I wouldn't say that implementing something synchronously versus asynchronously changes performance characteristics. It changes scalability - that is, the...
Hi Jeff, What is the proper way by which to acquire/release a lock on an object from within an enumerable method? The C# compiler lets you get away with...
I'm sure I'm missing something here but in the sample, you created a method that returns a resource that didn't require any IO in the first place and you put...
First, I have to say that I'd really avoid holding on to a lock while doing I/O. If the I/O never completes, you hold the lock forever. A better approach (if...
OK, I see what you're saying. (Oh, and I realized what I was missing in my first batch of questions I asked, you can't use the lock keyword b/c all the other...