public StackAuthClientAsync(IUrlClientAsync client, IProtocol protocol) #endif { BaseUrl = "http://stackauth.com"; WebClient = client; Protocol = protocol; }
public StackyClientAsync(string version, string apiKey, string baseUrl, IUrlClientAsync client, IProtocol protocol) #endif { Require.NotNullOrEmpty(version, "version"); Require.NotNullOrEmpty(baseUrl, "baseUrl"); Require.NotNull(client, "client"); Require.NotNull(client, "client"); this.version = version; WebClient = client; BaseUrl = baseUrl; Protocol = protocol; this.apiKey = apiKey; }
public StackyClientAsync(string version, string apiKey, Site site, IUrlClientAsync client, IProtocol protocol) #endif : this(version, apiKey, site.ApiEndpoint, client, protocol) { }