Beyond Dependency Injection: Listing 1.

Creating an ISubDependencyResolver class.

class AppConfigResolver : ISubDependencyResolver
{
  public bool CanResolve(CreationContext context,
    ISubDependencyResolver contextHandlerResolver,
    ComponentModel model,
    DependencyModel dependency)
  {
    throw new NotImplementedException();
 
  }
 
  public object Resolve(CreationContext context,
    ISubDependencyResolver contextHandlerResolver,
    ComponentModel model,
    DependencyModel dependency)
  {
    throw new NotImplementedException();
  }
}

About the Author

Patrick Steele is a senior .NET developer with Billhighway in Troy, Mich. A recognized expert on the Microsoft .NET Framework, he’s a former Microsoft MVP award winner and a presenter at conferences and user group meetings.