Intechnity-com / OdooJsonRpcClient

Odoo Client Json Rpc
MIT License
68 stars 29 forks source link

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

Open DavidMrWang opened 2 years ago

DavidMrWang commented 2 years ago

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!

patricoos commented 2 years ago

this class is not designed for use in DI