Closed Genmutant closed 4 months ago
Currently not, but I already have a branch with this functionality, only need to clean it up a bit. Will let you know once it's published.
@Genmutant I've published updated nuget package: https://www.nuget.org/packages/ServiceScan.SourceGenerator/1.1.2
Now you can use AsSelf flag:
[GenerateServiceRegistrations(AssignableTo = typeof(IService), AsSelf = true)]
or
[GenerateServiceRegistrations(AssignableTo = typeof(IService), AsSelf = true, AsImplementedInterfaces = true)]
Works great, thanks!
I need to register some classes as themself. They can be found by a specific interface, but I don't want to register them as such, as the specific implementations need to be injected.
If I understand correctly, this is currently not possible?