-
Notifications
You must be signed in to change notification settings - Fork 7
Some updates #14
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
base: master
Are you sure you want to change the base?
Some updates #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change the nuspec file or include packages you have generated. Please do not downgrade the framework version. Also see my comments about your http client changes. Even though the old was using .result it still allowed multiple clients to be created. I would advise you to split your generate invoice pdf change from the base proxy change. As that will be easier to approve.
| </runtime> | ||
|
|
||
| </configuration> No newline at end of file | ||
| <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /></startup></configuration> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I needed to use it in a project already including a higher version of Newtonsoft.Json than 7
| <RootNamespace>Saasu.API.Client.IntegrationTests</RootNamespace> | ||
| <AssemblyName>Saasu.API.Client.IntegrationTests</AssemblyName> | ||
| <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion> | ||
| <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you changing the target framework?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My project was 4.6.1, and I couln't otherwise use the library. Upgrading my framework version led to other issues. I made this change before I intended the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS. It's not a downgrade. Nuget packages should target the lowest possible framework that supports it, so it can be used as widely as possible. Packages targeted for a lower version framework can be used in a project using a higher version framework, but packages with a higher version framework can't be used in a project with a lower version.
| <packages> | ||
| <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net471" /> | ||
| <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net471" /> | ||
| <package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you downgrading the target framework?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
| <Saasu.API.Client.Config> | ||
| <setting name="IgnoreSSLErrors" serializeAs="String"> | ||
| <value>false</value> | ||
| <value>true</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this value changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting connection SSL errors, though likely because I can't create an outbound connection. The HTTPClient stops working after a few hours after launch. This wasn't intended as part of the pull request.
| : new JsonMediaTypeFormatter()); | ||
| } | ||
|
|
||
| return client.SendAsync(request).Result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to block the call and it won't be async. These changes will only allow a single http request at a time, where before multiple would have been supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think so. HttpClient is intended to be shared, and is reentrant and thread safe. Unless I'm missing something.
See https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/
| <RootNamespace>Saasu.API.Client</RootNamespace> | ||
| <AssemblyName>Saasu.API.Client</AssemblyName> | ||
| <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion> | ||
| <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downgrade
| <id>Saasu.API.Dotnet.Sdk</id> | ||
| <title>API SDK for the Saasu API</title> | ||
| <version>1.1.7</version> | ||
| <version>1.1.7.2</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change the nuspec file. We will do this for a release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit was not intended to be a part of the pull request. Because there was no response to our request, we made this change internally so we could push to our private nuget repository without conflicts.
| <version>1.1.7.2</version> | ||
| <authors>Saasu</authors> | ||
| <description>A client SDK for working with the Saasu API.</description> | ||
| <description>A client SDK for working with the Saasu API. Modified for Intellis internal use.</description> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an appropriate description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above. This was not intended to be pulled to the base repo
| <packages> | ||
| <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net471" /> | ||
| <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net471" /> | ||
| <package id="Newtonsoft.Json" version="10.0.3" targetFramework="net46" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downgrade.
Hi,
I've included some changes here that we've made internally.