I have method what returns objects implementing particular interface. Depends on argument method return different object. All implement the same interface so I can use the same method like Execute() on interface outside the method. This solution force me to avoid of using MEF. How can I use both solution at once? Importing constructor from MEF and isolation of different strategies in separate classes?
Aucun commentaire:
Enregistrer un commentaire