Discussion about the mechanism of ObjectBuilder and Service

Topics: CAB & Smart Client Software Factory
Feb 2, 2007 at 2:12 AM
When can seee the following service example:

Service(typeof(IMyService))
public class MyService : IMyService
{
//To do:
}

ServiceDependency
public IMyService MyServiceInstance
{
set { _MyServiceInstance = value; }
}

You'll see we may get an concrete instance of service by an abstract interface.
Who can tell me how it works? Thank you in advance.

Additionally, I'm wondering how to use ObjectBuilder to get an concrete instance of class by an abstract class(with generic types).