London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Replacing StructureMap with SimpleInjector

Vote:
 

Hi,

We would like to replace StructureMap as DI Framework with SimpleInjector in a huge project with CMS and Commerce in order to be consistent with other applications in the same solution.

I could not find any documentation on this. I guess instead of using EPiServer.ServiceLocation.StructureMap Package, we would have to write something similar to inject SimpleInjector. I reverse engineered the code a bit, but there are not-so-trivial classes, like StructureMapConfiguration with some reflection and other magic.

Can someone help us with this?

Thanks in advance,

Zsolt

#257314
Jun 29, 2021 14:35
Vote:
 

It's a large project to undertake. Once thing I would mention to be aware of is that the .NET 5/6 version of Episerver is on the horizon. This is going to be replacing the DI framework with the OOTB dependency framework I believe. So it may be worth waiting if you're planning on migrating once it comes out.

#257315
Edited, Jun 29, 2021 14:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.