Ejemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Bluemix.Cloudant.CloudantSearch"/> class.
		/// </summary>
		/// <param name="ds">Datasource</param>
		public CloudantSearch(Datasource ds)
		{
			if (string.IsNullOrEmpty (ds.DatabaseName))
				throw new ArgumentException ("DatabaseName cannot be null or empty");
			_ds = ds;
			cloudantConfiguration = new CloudantConfiguration ();
			cloudantConfiguration.BasePath = string.Format (cloudantConfiguration.BasePath, ds.DBCredentials.UserName);
			client = new BluemixClient (ds.DBCredentials);

		}
Ejemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Bluemix.Watson.WatsonQA"/> class.
		/// </summary>
		public WatsonQA (ICredentials credentials)
		{
			watsonConfiguration = new WatsonConfiguration ();
			client = new BluemixClient (credentials);

		}