/// <summary> /// Sets up the client /// </summary> /// <param name="config">Configuration data for the WURFL client</param> /// <param name="capabilities">List of capabilities to retrieve</param> /// <param name="credentials">Credentials for the service</param> /// <param name="cache">Cache to use</param> public CloudClient(CloudClientConfig config, String[] capabilities, Credentials credentials, IWurflCloudCache cache) { _reqHeaders = new Dictionary <String, String>(); _capabilities = capabilities; _config = config; _credentials = credentials; _cache = cache; }
public CloudClientManager(CloudClientConfig config) { // Sets the internal configuration manager and pick up cloud host to use _config = config; // Sets the internal cache to be used to serve requests more quickly. _cache = new MemoryWurflCloudCache(); // Throw if invalid credentials are provided. EnsureCredentialsAreValid(); }
/// <summary> /// Sets the cache object to use /// </summary> /// <param name="cache">Cache object to use</param> public CloudClientManager SetCache(IWurflCloudCache cache) { _cache = cache; return(this); }