Onion Architecture and Registering Dependencies in DI Container
问题 I have been reading up on the Onion architecture, and I have what I think is a simple question about how assembly dependencies should be arranged for a DI container to be able to wire everything up. Assume a very simple solution that has the following structure: UI => BL <= DAL So the UI and DAL reference the BL, but have no knowledge of each other. Also assume the BL has an interface called IDatabaseService, which is implemented in the DAL by DALDatabaseService. The container would