CSharpFeeds - All your C# feeds in one place.

Tuesday, June 09, 2009

Multithreading: waiting on the APM’s WaitHandle

by luisabreu via LA.NET [EN] on 6/9/2009 9:25:06 PM

Today, we’re going to keep looking at the available options waiting for the conclusion of an asynchronous task started through the APM model. In this post we’re going to see how we can use the WaitHandle which we can get through the IAsyncResult’s AsyncWaitHandle property. After getting a valid reference to it, you can do what you normally do with handles: make the thread wait until it gets signaled. You might say: “dude, what’s the difference between this approach and the previous one?” And I ...

[ read more ]

Friend assemblies and strong names

by luisabreu via LA.NET [EN] on 6/9/2009 9:49:40 AM

Before getting started, I’d like to say that I don’t really use friend assemblies much. However, there are times where using friend assemblies is a must and in those cases, you might end up getting into the problem I had. For starters, you need to use the InternalsVisibleToAttribute to signal a friend assembly. In my case, I’ve added something like this: [assembly: InternalsVisibleTo("Sra.Core.Entities.Repositories")] Since I tend to sign my assemblies, I’ve ended up getting this err ...

[ read more ]

Multithreading: blocking the thread by calling EndXXX directly

by luisabreu via LA.NET [EN] on 6/9/2009 9:07:33 AM

As we’ve seen, one of the available options is blocking the thread by calling the EndXXX method directly. This might be a good option when you only need to do one or two small tasks and then you need to wait until the asynchronous operation is completed. In practical terms, this option won’t be usable in many scenarios. However, I’d say that this is the easiest of the four available options because you practically don’t need to make any changes to the existing synchronous algorithm you might be ...

[ read more ]

ASP.NET MVC HttpModule Registration Under IIS Integrated Mode vs. Classic Mode

by Jeffrey Palermo via Jeffrey Palermo (.com) on 6/9/2009 12:48:03 AM

Subscribe to my feed here: http://feeds.jeffreypalermo.com/jeffreypalermo Context In many applications, I find the development team needs to have some bit of configuration code run at the very beginning, before any other code.  In a web site on ASP.NET, we have the Global.asax file that has an Application_Start method.  In an ASP.NET MVC app, we register routes and do other things before the first request is served by the application.  One of the common start-up tasks my team ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us