Skip to content

Exclude certain derived types from registering #121

@SlowLogicBoy

Description

@SlowLogicBoy
//Class in library assembly
public class LibraryClass {}

public class MyBaseClass : LibraryClass {}

public class MyClass : MyBaseClass {}

right now it registers MyClass as MyClass, MyBaseClass and LibraryClass, I would like to exclude registering base classes from Library.
I tried doing:

  <AutoDI>
    <Type Name="Library.*" Lifetime="None"/>
  </AutoDI>

But it doesn't work and I presume it is not intended way to do this.

Maybe there is a way to do this using <Map> ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions