Closed Andrei-NZ closed 1 year ago
Would it be safe/good idea to add dotnet dependency injection into dotnet interop function (TypeReference)?
Much like Quartz allows for a custom JobFactory in here: https://github.com/quartznet/quartznet/blob/main/src/Quartz/SPI/IJobFactory.cs
What I am trying to achieve is to be able to use DI services of dot net in the referenced types.
Should now be possible, see test case for sample.
Would it be safe/good idea to add dotnet dependency injection into dotnet interop function (TypeReference)?
Much like Quartz allows for a custom JobFactory in here: https://github.com/quartznet/quartznet/blob/main/src/Quartz/SPI/IJobFactory.cs
What I am trying to achieve is to be able to use DI services of dot net in the referenced types.