CreateHostname() public method

public CreateHostname ( string applicationSlug, string hostName ) : CreateResult
applicationSlug string
hostName string
return CreateResult
Example #1
0
        public void CreateHostname(string applicationId, string hostname)
        {
            var result = _api.CreateHostname(applicationId, hostname);

            try
            {
                HandleCreateResult("hostname", hostname, result.Status);
            }
            catch (ApiException)
            {
                //We currently have no way of determining if the ApiException was caused by missing credit card or another API error.
                throw new ApiException("The problem may be that we do not have a credit card on file for the application owner");
            }
        }