Esempio n. 1
0
 /// <summary>
 /// Configures the authentication credentials instead of the constructor
 /// </summary>
 /// <param name="authCredential"></param>
 public static HttpRequestClient GetInstance(AuthCredential authCredential)
 {
     if (_instance == null)
     {
         _instance = new HttpRequestClient(authCredential);
     }
     return(_instance);
 }
 public Account(AuthCredential authCredential)
 {
     this.AuthCredential    = authCredential;
     this.HttpRequestClient = HttpRequestClient.GetInstance(this.AuthCredential);
 }
Esempio n. 3
0
 public PaymentProvider(AuthCredential authCredential)
 {
     this.AuthCredential    = authCredential;
     this.HttpRequestClient = HttpRequestClient.GetInstance(this.AuthCredential);
 }
 public Transaction(AuthCredential authCredential)
 {
     this.AuthCredential    = authCredential;
     this.HttpRequestClient = HttpRequestClient.GetInstance(this.AuthCredential);
 }