XendBridge
Ask or search…
K

XendBridge .NET SDK

Xendbridge provides a .NET SDK which can be integrated by downloading from the Nugget Package Manager on Visual Studio or from the website.

Installation

The .NET SDK can be integrated by downloading from the Nugget Package Manager on Visual Studio or from the website.

Setup

Firstly, in your appsettings.json file, you'd need to add the following JSON object and properties and populate them with the necessary values considering the environments of your choice. See Get Your Secret and Public Keys and Environments to get your keys and urls.
"XendBridgeSDKConfig": {
"BaseUrl": "https://canary.xendbridge.com",
"PublicKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"SecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
Secondly, add or bind the config settings to your project by injecting it into your services using the following code snippet;
public static IServiceCollection ConfigureAppSettingsBinding(this IServiceCollection services, IConfiguration Configuration)
{
//Your other registered services can be here
services.RegisterXendBridgeSDKConfig(Configuration);
return services;
}
Lastly, you'd need to register the SDK as a service in the services using the code snippet below;
public static IServiceCollection RegisterServices(this IServiceCollection services)
{
services.AddXendBridgeSDK();
}

Method Calls

After adding the setup above, the following functions, objects, and params are provided for the following method calls below.