Created
March 2, 2017 09:20
-
-
Save stpriyanka/a699842d22dfe4c5045af9c4fe2585b5 to your computer and use it in GitHub Desktop.
Instantiate BillogramUtility.cs class for sandbox environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Utility | |
{ | |
private string _clientSecretUser; | |
private string _clientSecretKey; | |
private string _baseUrl; | |
private BillogramUtility _billogramUtility; | |
............. | |
public void Initialize() | |
{ | |
var appSettings = ConfigurationManager.AppSettings; | |
_clientSecretUser = appSettings["Billogram.AuthUser"]; | |
_clientSecretKey = appSettings["Billogram.AuthKey"]; | |
_baseUrl = appSettings["Billogram.BaseUrl"]; | |
_billogramUtility = new BillogramUtility(_clientSecretUser, _clientSecretKey, _baseUrl); | |
} | |
........ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment