1

I Like StructureMap's registry feature for helping me to group IOC Registrations together:

http://structuremap.github.io/registration/registry-dsl/

I'm using DryIOC as my Container - its working great - but I'm in a situation where my registry class needs re-organising. Is there an equivalent Registry feature in DryIOC?

reach4thelasers
  • 26,181
  • 22
  • 92
  • 123

1 Answers1

0

As I understood the Registry feature is similar to Autofac Module, plus some syntax sugar.

Basically it allows to logically group registrations, simplifying the control.

If I am right, here is the example of how to group DryIoc registrations in kinda module, directly comparing with Autofac feature: https://bitbucket.org/dadhi/dryioc/wiki/FaqAutofacMigration#markdown-header-modules

The difference from StructureMap is explicit use of injected IRegistrator, instead of hiding it in the base class.

dadhi
  • 4,807
  • 19
  • 25
  • 1
    Updated link: https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/FaqAutofacMigration.md#modules – Wouter Apr 06 '23 at 08:10