.Net Core dependency injection manually dispose object created using the implementationFactory Func

后端 未结 0 1042
情歌与酒
情歌与酒 2021-01-05 18:13

Is there a way to dispose objects after creating them using the implementationFactory? Like so:

   services.AddTransient(x => {
    var objectA = new Objec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题