STARIONGROUP/COMET-SDK-Community-Edition

CDP4ServicesDal: Injected httpClient bugs

antoineatstariongroup opened this issue · 0 comments

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the COMET-SDK
  • I have searched open and closed issues to ensure it has not already been reported

Description

After testing the injection of the HttpClient into the CDP4ServicesDal, here are found bugs:

  • After a CloseSession, any further request will fails since the HttpClient has been disposed
  • If the first Login fails, next login will fail since a Request has already been send but the BaseAddress of the HttpClient wants to be set again

Steps to Reproduce

System Configuration

  • COMET version:
    • CDP4Common:
    • CDP4JsonSerializer:
    • CDP4Dal:
    • CDP4JsonFileDal:
    • CDP4ServicesDal:
    • CDP4WspDal:
    • Other:
  • Environment (Operating system, version and so on):
  • .NET Framework version:
  • Additional information: