-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IServiceCollectionExtensions extra closing parenthesis with httpMessageHandlers #205
Comments
@EEParker Good catch!! My (and my team's) use case is "dependencyInjectionSettings": {
"baseUrl": "https://petstore3.swagger.io/api/v3",
"usePolly": true,
"pollyMaxRetryCount": 3,
"firstBackoffRetryInSeconds": 0.5,
"httpMessageHandlers": [
"AuthorizationMessageHandler",
"TelemetryMessageHandler"
]
} I never tested without using Polly! I'll fix this immediately. Sorry for the inconvenience. |
@all-contributors please add @EEParker for bugs |
I've put up a pull request to add @EEParker! 🎉 |
Thank you for the response and quick fix! Just FYI, our use case is Dapr service invocation which has retry and backoff, so we haven't implemented Polly. Thank you for creating and maintain this tool. |
The fix is on its way to a release and will be included in v0.8.3 |
Describe the bug
Version 0.8.2 generates a new dependency injection IServiceCollectionExtensions, and seems to introduce a syntax error as shown below:
This seems to originate from this line
refitter/src/Refitter.Core/DependencyInjectionGenerator.cs
Line 81 in ecca7ac
I wasn't sure if there were use cases that this worked, but this is the config that does not work, and probably has something to do with the
httpMessageHandlers
in the dependency injection section.I cannot include the API spec for privacy reasons.
The text was updated successfully, but these errors were encountered: