No parameterless constructor error in WebJobs with .NET Core and Ninject

后端 未结 1 1199
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 00:18

I\'m trying to do a bit of a balancing act here. Currently Azure WebJobs don\'t support .NET Core.

With some help, I created a .NET Core Console App and made it work as

相关标签:
1条回答
  • 2021-01-29 00:50

    After instantiating the JobHostConfiguration from the BootStrapIoc method, you re-instantiate it from the main method.

    Just remove this line in your main method:

    config = new JobHostConfiguration();
    
    0 讨论(0)
提交回复
热议问题