Adds ignoreSslErrors
to the WebApiConnector
class
#300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The most significant changes involve the addition of a new parameter
ignoreSslErrors
to theWebApiConnector
class,CreateWebApi
method, andWebApiConnectorFactory
class. This parameter allows the user to choose whether to ignore SSL errors or not.The
WebApiConnector
class inWebApiConnector.cs
has been updated to include a new parameterignoreSSLErros
in its constructor. This parameter is a boolean that, when set to true, will ignore SSL errors. IfignoreSSLErros
is set to true, a lambda function is set to theCertificateCallback
ofServerCertificateCallback
that always returns true, effectively ignoring any SSL errors.The
CreateWebApi
method inWebApiConnectorExtensions.cs
has been updated to include a new parameterignoreSslErrors
with a default value of false. TheParameters
property of theConnectorAdapter
object returned by the method has been updated to includeignoreSslErrors
.The
WebApiConnectorFactory
class inWebApiConnectorFactory.cs
has been updated to handle the newignoreSslErrors
parameter. TheWebApiConnector
object returned by theCreate
method now includesignoreSslErrors
as a parameter.Type of change
Please delete options that are not relevant.