So I have written a custom ITaxCalculator, which is cofigured in our StructureMap configuration initialization, and it works as needed in the website. But how do I get Commerce Manager's dependency injection (or StructureMap) to also use my implementation instead of the default?
(Episerver CMS 11.9.2 with Commerce 11.8.5)
You should have separate project with all of your custom implementations and their registration, and this project's assembly should be deployed in both your frontend and CM bin folder
Yeah, my custom class is deployed in a shared dll (separate project) to CM.. But I think I'm missing something, how would CM know to use that class? In web I have that structuremap configuration that tells it, but nothing yet would tell CM to use that class for ITaxCalculator..
Okay, think I missed your "and registration" which I haven't done outside of my web project. Now that I've also registered it in the shared project, Commerce Manager uses it now :)