示例#1
0
 /// <summary>
 /// Constructs a new UKFast Client instance using provided UKFastCredentials instance
 /// </summary>
 /// <param name="credentials">Instance of UKFastCredentials object</param>
 public ClientConnection(UKFastCredentials credentials)
 {
     this.Client      = GetDefaultClient();
     this.Credentials = credentials;
 }
示例#2
0
 /// <summary>
 /// Constructs a new UKFast Client instance using provided API key
 /// </summary>
 /// <param name="apiKey">Application API key</param>
 public ClientConnection(string apiKey)
 {
     this.Client      = GetDefaultClient();
     this.Credentials = new UKFastAPIKeyCredentials(apiKey);
 }