azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[FEATURE REQ] Need expose buildUserAgent in UserAgentPolicy

Open ChenTanyi opened this issue 6 years ago • 2 comments

Is your feature request related to a problem? Please describe. In Fluent Java, we use a rest client for all package. Thus, we need to set different user agent in different request. https://github.com/Azure/azure-libraries-for-java/blob/vnext/azure-mgmt-resources/src/main/java/com/azure/management/UserAgentPolicy.java#L90 In order not to new a policy per request or pass the whole user agent parameter every time, we'd like to ask for expose the buildUserAgent function to protected or public.

Describe the solution you'd like Solution as above.

Describe alternatives you've considered

Additional context

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Description Added
  • [x] Expected solution specified

ChenTanyi avatar Jan 20 '20 02:01 ChenTanyi

Assigning to @alzimmermsft for review.

JonathanGiles avatar Jan 20 '20 22:01 JonathanGiles

Fixed in #12456

srnagar avatar Jun 29 '20 20:06 srnagar