Scrutor library adds a cool decorator feature for Microsoft.Extensions.DependencyInjection. Is it possible to provide a similar thing here?
https://github.com/khellang/Scrutor
builder.Register<IPictureRepository, PictureRepository>();
builder.Decorate<IPictureRepository, CachingPictureRepository>();
builder.Decorate<IPictureRepository, LoggingPictureRepository>();
// Resolve<IPictureRepository> would resolve LoggingPictureRepository with this hierarchy of decoration
// - LoggingPictureRepository
// | - CachingPictureRepository
// | - PictureRepository
Scrutor library adds a cool decorator feature for
Microsoft.Extensions.DependencyInjection. Is it possible to provide a similar thing here?https://github.com/khellang/Scrutor