Skip to content

Aggressive Monkey

Choose a tag to compare

@khellang khellang released this 22 Apr 12:00
· 335 commits to master since this release
  • Obsoleted AddFromAttributes, adding UsingAttributes instead.

This means you can now filter classes before you add them using the attributes;

collection.Scan(scan => scan.FromAssemblyOf<ITransientServiceToCombine>()
        .AddClasses(classes => classes.AssignableTo<ITransientServiceToCombine>())
            .UsingAttributes());

The equivalent to AddFromAttributes (without a delegate argument) would be

collection.Scan(scan => scan.FromAssemblyOf<ITransientServiceToCombine>().AddClasses().UsingAttributes());