Exemplo n.º 1
0
		private Availability?[] CheckAvailability()
		{
			string transactionID = Guid.NewGuid().ToString();
			string returnXml = wapi.CheckAvailability(transactionID, cred, domainNames, null, null);
			CheckAvailabilityResponse c = new CheckAvailabilityResponse(returnXml);
			otherTransactionIDs.Add(transactionID);
			//if (c.ResponseCode != ResponseCode.Success) throw new FailedResponseException(c.ResponseCode, returnXml);
			return c.AvailabilitiesForDomains(this.domainNames);
		}
Exemplo n.º 2
0
		Availability CheckAvailability()
		{
			CheckAvailabilityResponse checkAvailResp = new CheckAvailabilityResponse(
				wapi.CheckAvailability(Guid.NewGuid().ToString(), this.credentials, new string[] { this.DomainName }, null, null));
			return checkAvailResp.Availabilities[0];
		}