/// <summary> /// Creates the domain. /// </summary> /// <param name="domainName">Name of the domain.</param> /// <returns>DomainInfo.</returns> public CreateDomainInfo CreateDomain(string domainName) { using (var clt = new AmazonSDBPortTypeClient()) { try { var info = new CreateDomainInfo() { DomainName = domainName }; var req = CreateDomainMapper.MapToService(info); clt.Open(); var rsp = clt.CreateDomain(req); return(CreateDomainMapper.MapToInfo(rsp.CreateDomainResponse)); } finally { clt.Close(); } } }
public static CreateDomainRequest MapToService(CreateDomainInfo info) { var helper = new CreateDomainMapperHelper(); return(helper.MapToService(info)); }