Exemplo n.º 1
0
 /// <summary>
 /// Create a client for the GrandCloud CS service with the specified configuration
 /// </summary>
 /// <param name="accessKey">The Access Key associated with the account</param>
 /// <param name="secretAccessKey">The Secret Access Key associated with the account</param>
 /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc
 /// </param>
 /// <returns>An GrandCloud CS client</returns>
 /// <remarks>
 /// </remarks>
 public static GrandCloudCS CreateGrandCloudCSClient(
     string accessKey,
     string secretAccessKey,
     GrandCloudCSConfig config
     )
 {
     return new GrandCloudCSClient(accessKey, secretAccessKey, config);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a client for the GrandCloud CS Service with the credentials defined in the App.config.
 /// 
 /// Example App.config with credentials set. 
 /// <code>
 /// &lt;?xml version="1.0" encoding="utf-8" ?&gt;
 /// &lt;configuration&gt;
 ///     &lt;appSettings&gt;
 ///         &lt;add key="AWSAccessKey" value="********************"/&gt;
 ///         &lt;add key="AWSSecretKey" value="****************************************"/&gt;
 ///     &lt;/appSettings&gt;
 /// &lt;/configuration&gt;
 /// </code>
 /// </summary>
 /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc</param>
 /// <returns>An GrandCloud CS client</returns>
 public static GrandCloudCS CreateGrandCloudCSClient(GrandCloudCSConfig config)
 {
     return new GrandCloudCSClient(config);
 }