How to inject dependency in Azure data factory(ADF) custom activity?
Currently the ADF custom activity only supports .NET Framework class library.
On a side note, regarding to how to do DI in .net core, there's sample below
https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/dependency-injection/sample