Posted on: 8/8/2015 9:38:09 AM | Views : 895

Hi
I want to design Modular System in asp.net WebForm using StructureMap but I have a problem with that registration.
I can register my classes but I want to implement auto registration classes.
I programmed look like this codes:
public interface IStructureMapClass { } public class ServiceBase : IStructureMapClass { } public class Products : IProductService, ServiceBase { IUnitOfWork _uow; public Products(IUnitOfWork uow) { _uow = uow; } } public class BasePage : Page { protected override void OnLoad(EventArgs e) { ObjectFactory.BuildUp(e); base.OnLoad(e); } } Now I don't know how to auto registration my interfaces and classes by structuremap.
Are you have any solution for my problem?

Go to the complete details ...