T
Tosch
I have an order processing application with many features.
I want to be able to put some features in external and configureable
DLLs.
The main application has to pass an order object (and possibly some
other objects) to the external dll.
I have designed a base class with just interfaces on which the real
dlls base. The main application has a reference to this base class.
The external dlls (and the base class) need a reference to the main
application so it can properly use the classes that are passed from
the main application to the external dlls.
Since the main app has a reference to the external dlls and the
external dlls have a reference to the main app this looks to me like
circular reference.
Can I get into trouble with this design? Is it better to move all the
classes to a separate dll and reference this dll from the main
application and the external dll?
Any comments welcome
Tosch
I want to be able to put some features in external and configureable
DLLs.
The main application has to pass an order object (and possibly some
other objects) to the external dll.
I have designed a base class with just interfaces on which the real
dlls base. The main application has a reference to this base class.
The external dlls (and the base class) need a reference to the main
application so it can properly use the classes that are passed from
the main application to the external dlls.
Since the main app has a reference to the external dlls and the
external dlls have a reference to the main app this looks to me like
circular reference.
Can I get into trouble with this design? Is it better to move all the
classes to a separate dll and reference this dll from the main
application and the external dll?
Any comments welcome
Tosch