OdooJsonRpcClient icon indicating copy to clipboard operation
OdooJsonRpcClient copied to clipboard

Why DbContext has been disposed after I call the function of OdooClient?

Open DavidMrWang opened this issue 3 years ago • 1 comments

I injected OdooClient and OdooRepository throuth Autofac, but there's something wrong that DbContext has been disposed after I call OdooRepository.CreateAsync().The way I injected DBContext is Scope. I guess it was Odoo's http request that led to the end of the scope lifetime. Thank you very much!

DavidMrWang avatar Dec 22 '21 09:12 DavidMrWang

this class is not designed for use in DI

patricoos avatar Feb 09 '22 14:02 patricoos