Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class
 /// </summary>
 /// <param name="baseUrl">The base url used for making requests</param>
 /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param>
 public AlphaStreamRestClient(string baseUrl, AlphaCredentials credentials)
     : this(new RestClient(baseUrl ?? DefaultBaseUrl), credentials)
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class
 /// </summary>
 /// <param name="client">Rest client implementation.</param>
 /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param>
 public AlphaStreamRestClient(IRestClient client, AlphaCredentials credentials)
 {
     this.client      = client;
     this.credentials = credentials;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlphaStreamRestClient"/> class
 /// </summary>
 /// <param name="credentials">Credentials used to connect to the alpha streams rest service</param>
 public AlphaStreamRestClient(AlphaCredentials credentials)
     : this(DefaultBaseUrl, credentials)
 {
 }