Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
        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();
        }