次の方法で共有


Service Locator 1.1 Available

A new version of the Service Locator Enterprise Application Block is now available. At version 1.1, not much is new: I've added a method which allows a developer to clear all injected services from the InjectionServiceProvider. The idea is that, in unit testing, all tests should be independent, so you need some easy way to clear all injected services from ServiceLocator. Using a test fixture setup method, one can now simply call the Clear method to remove all services before injecting new services in the next test.

Apart from that, the only other significant change is that Service Locator 1.1 now targets the June 2005 version of Enterprise Library. "So," you're saying, "it's 2006 and he's releasing code for .NET 1.1. What about .NET 2.0 and Enterprise Library for .NET 2.0?" As a matter of fact, I'm currently working on Service Locator 2.0 for the next version of Enterprise Library, but it will probably take a month or two before it's done.

As I wanted a common area to place all my Service Locator releases, I've created a code gallery on GotDotNet: https://codegallery.gotdotnet.com/servicelocator. This is the home of Service Locator 1.1, so you can go there to download the block. Incidentally, this is also the place where I will release future updates, including Service Locator 2.0.