why does Service Locator inherits from IServiceProvider

Aug 23, 2009 at 3:47 PM

from the implementation, I see that the GetService is just delegate to the call to GetInstance.

why does Service Locator inherits from the System.IServiceProvider?

Aug 23, 2009 at 9:12 PM

The reason is to support using CSL with existing frameworks that require an IServiceProvider, as IServiceProvider is an established mechanism in the framework.

Glenn

From: chuanbozhang [mailto:notifications@codeplex.com]
Sent: Sunday, August 23, 2009 8:48 AM
To: Glenn Block
Subject: why does Service Locator inherits from IServiceProvider [CommonServiceLocator:66733]

From: chuanbozhang

from the implementation, I see that the GetService is just delegate to the call to GetInstance.

why does Service Locator inherits from the System.IServiceProvider?

Read the full discussion online.

To add a post to this discussion, reply to this email (CommonServiceLocator@discussions.codeplex.com)

To start a new discussion for this project, email CommonServiceLocator@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com