Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #11271
Closed
Open
Issue created Jan 10, 2022 by Administrator@rootContributor

[REQ][csharp-netcore][client] Move `RestClient` to `Configuration`

Created by: Anakael

Is your feature request related to a problem? Please describe.

In csharp generator inner RestClient is saved in Configuration, but in csharp-netcore not and it created for each request. It doesn't allow to configure RestClient, for example, add IAuthenticator from RestSharp and also less perfomant as reusage of RestClient as it was in csharp generator.

Describe the solution you'd like

I'd like to move creating RestClient in Configuration class.

Describe alternatives you've considered

As alternative solution for only authorization IAuthenticator can be added to *Api and can be consumed for new RestSharp when it created.

If moving RestClient in Configuration is ok, I can try to implement it by myself.

Assignee
Assign to
Time tracking