Hello!
Previously, I used v4.2.2, and my business logic partially depended on determining whether the service is decorated.
Like this:
ServiceDescriptor descriptor;
...descriptor.ServiceType is DecoratedType...
I can't migrate to v5.x right now because the DecoratedType class has been removed and I don't see a way to implement such logic.
Is it possible to make the IsDecorated extension method (see below) public? That would solve my problem.
|
private static bool IsDecorated(ServiceDescriptor descriptor) => |
Thanks for such a cool library!
Hello!
Previously, I used
v4.2.2, and my business logic partially depended on determining whether the service is decorated.Like this:
I can't migrate to
v5.xright now because theDecoratedTypeclass has been removed and I don't see a way to implement such logic.Is it possible to make the
IsDecoratedextension method (see below)public? That would solve my problem.Scrutor/src/Scrutor/ServiceCollectionExtensions.Decoration.cs
Line 295 in e6a329e
Thanks for such a cool library!