Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Net core 3.1 config #6

Closed
vishalpatel-te-zz opened this issue Jun 18, 2020 · 6 comments
Closed

Net core 3.1 config #6

vishalpatel-te-zz opened this issue Jun 18, 2020 · 6 comments

Comments

@vishalpatel-te-zz
Copy link

I have net core 3.1 web app and trying to use this SDK. How do I configure in App.Setting
With below, it gives error that configuration not found.

"ConnectSDK": {
"connectTimeout": "5000",
"socketTimeout": "30000",
"maxConnections": "10",
"authorizationType": "",
"integrator": "",
"apiEndpoint": {
"host": "",
"scheme": "https"
}
}

Any help would be appreciated.

@rob-spoor
Copy link

Because the SDK still needs to be compatible with .NET Framework 4.5, the configuration loading has not been updated. It still requires an app.conf or web.conf configuration file.

We suggest you use either use one of the methods in class Factory that takes an IDictionary, or create a CommunicatorConfiguration instance and set its properties manually. When using an IDictionary, you can lookup the keys in CommunicatorConfiguration.cs.

@vishalpatel-te-zz
Copy link
Author

Awesome that worked!!

@vvangasam
Copy link

Hi Iam trying to connect ingenico device, but the methods which i am trying to call i am not able to find in sdk. can u help me to connect

@rob-spoor
Copy link

The methods in Factory that take an IDictionary can be found here:

The methods in Factory that take a manually created CommunicatorConfiguration can be found here:

I suggest one of the two methods that immediately returns a Client, unless you need to configure the Session or re-use the Communicator.

@vvangasam
Copy link

In web config i had written like this

but i am getting "ExceptionMessage":"Unsupported Authorization", where can i find host name

@rob-spoor
Copy link

Let's continue in #7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants